1. Louis Mancini
  2. PowerBuilder
  3. Thursday, 2 January 2020 19:15 PM UTC

Hi,

 

I'm trying to set a left margin on RTE but its not working.

I've tried this:

rte_roundup.LeftMargin = 1

 

but nothing moves.

 

Is this a bug or how do I set margins on the RTE.

I actually don't even want the margin on the RTE itself but when I print it, I need a margin.

 

thanks,

Lou

 

 

 

 

Louis Mancini Accepted Answer Pending Moderation
  1. Thursday, 20 February 2020 15:37 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

 

I'm still having an issue when trying to print from a richeditcontrol

this code works for the left margin by itself:

rte_roundup.SetParagraphSetting(LeftMargin!, 500)

this code works for the top margin by itself:
rte_roundup.TopMargin = 500

 

but when I try to use them together they dont work.  Only the last one set seems to be used when printing so I get cut off at either the top or left page margins.

 

Is there anyway to print with both top bottom left and right margins set?

I'm using the built in rich edit control.  When I tried the TX it caused too many other things not to work like embedding html links.

 

 

Thanks,

Lou 

Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Tuesday, 7 January 2020 19:21 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

 

I switched to the TX control to solve a different issue(quotes displaying as an underscore) but now my hyperlinks are no longer working.  Instead of seeing the hand and being able to click thru to the webpage.  All I get is an up arrow and no ability to click thru.

 

Is the a way to get hyperlinks to work on the TX control?

 

Thanks,

Lou

 

 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 7 January 2020 19:55 PM UTC
Hi Lou;

AFAIK the URL links should be OK as long as they have the proper formatting around them - for example:

=> {\field{\*\fldinst HYPERLINK "http://www.google.com/";}{\fldrslt http://www.google.com}}

Regards ... Chris
  1. Helpful
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 21:31 PM UTC
  2. PowerBuilder
  3. # 3

Thanks Chris for the detailed instructions.  

I found the additional properties and changed it to the Built-In TX Control.

but didn't work.  Still no margins.

 

Any other ideas?

 

Thanks,

Lou

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 20:46 PM UTC
  2. PowerBuilder
  3. # 4

Hi Louis ...

  The Application Painter ...

Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 20:36 PM UTC
  2. PowerBuilder
  3. # 5

Hi Chris,

 

I must be missing something but I do not see additional properties anywhere.

 

I have a window open in the painter.  that window has a richtextedit control.

 

I see the general table and 3 other tabs but no additional properties anywhere.  What am I missing?

 

I've attached a screen print of the general tab.  Earlier attachment has the entire window.

 

Thanks,

Lou

Attachments (1)
Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 19:58 PM UTC
  2. PowerBuilder
  3. # 6

I don't see that setting anywhere my my  screen.

 

See attached:

 

How would I switch it?

Attachments (1)
Comment
  1. Chris Pollach @Appeon
  2. Thursday, 2 January 2020 20:15 PM UTC
Hi Louis ...Open the *Application Painter* => then go to Additional Properties => Then look for the RTE Tab
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 19:46 PM UTC
  2. PowerBuilder
  3. # 7

Thanks Louis;

   In that case ... are you using the TE RTE Control or the TX RTE control?

Note: This setting is found the Application Painter, as follows ...

   If your current setting is not the TX control, please try the using the Built-In TX Control instead.

 

Regards ... Chris

Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 19:39 PM UTC
  2. PowerBuilder
  3. # 8

Version 2019 Build 2082

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 January 2020 19:30 PM UTC
  2. PowerBuilder
  3. # 9

Hi Louis;

   What version & build of PB are you using?

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.