WPCubed Product Support

Print Preview question on wpoNumPages

To insert the total number of pages, I call the following code:

Editor.InputTextField(wpoNumPages);
  Editor.ReformatAll();

When a user is in the Editor visual component they can italicize and boldface the 'wpoNumPages' object, but it cannot be underlined. I'm running 5.20.8.

Anybody know about this issue and have a workaround?

#1 ♥ 0
8.4k Views 4 users read 2 min
support

Hi,

Please check the property FieldObjectTextAttr if it overrides attribute settings.

Julian

#2 ♥ 0

Hi Julian,

In addition to what was originally reported in this post, the same behavior can be observed for the code:

Editor.InputTextField(wpoTime); Editor.ReformatAll();

Likewise, the Underline attribute does not take effect for a code like:

paragraph.InsertNewObject(index, wpobjTextObject, false, false).Name := WPTextFieldNames[wpoTime];

or

paragraph.InsertNewObject(index, wpobjTextObject, false, false).Name := WPTextFieldNames[wpoNumPages];

I see this problem even though I have WPTools version 5.30.1.

#3 ♥ 0
support

Hi,

Sorry, I cannot duplicate this problem in V5.36

Julian

#4 ♥ 0

In version 5.40, we are still experiencing the issue where the dynamic portion of the text in a footer is not getting underlined. It is effecting the timeportion of a date/time, as well as the pagesportion of a "page of pages".

If a report that contains the above mentioned data is previewed, printed to paper, or printed to PDF, the underlines are not present for the part of the footer mentioned above. If the same report is printed to RTF, the underlines are present when the RTF file is opened.

#5 ♥ 0

We have recently upgraded from WPTools version 5.40 to 5.47.5. In testing this problem, we are still seeing that underline format is missing from part of the text under the circumstances stated above.

For previews, we use the TWPPreview. For printers, we sometime use CutePDF as a printer and generate a PDF file. When doing either of these, or sending directly to a printer, the report is missing the underline for the dynamic portion of elements mentioned above.

#6 ♥ 0
support

I see - it works if there is a space after the number.

I check this out.

#7 ♥ 0

Thanks Julian.

After modifiying our code to add a space after the dynamic portion of the text, the underlineing is working.

#8 ♥ 0
This category is archived. No new posts are possible.