1. Lynn A Haynes
  2. PowerBuilder
  3. Thursday, 10 December 2020 18:36 PM UTC

li_ret=dw_rpt.SaveAs(ls_filename, PDF!, false)
li_ret=dw_rpt.SaveAs(ls_filename, Text!, false)

 

PDF! returns -1, Text! returns 1. What's up? Is there some NativePDF not set?

Lynn A Haynes Accepted Answer Pending Moderation
  1. Friday, 11 December 2020 14:44 PM UTC
  2. PowerBuilder
  3. # 1

Of course that worked, PDF Export setting in AO. Thanks for the assist!

Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Friday, 11 December 2020 05:04 AM UTC
  2. PowerBuilder
  3. # 2
 

Hi Lynn,

 

The cause of the issue seems that you haven't turned on the NativePDF! It's suggested that you check if you turn this feature on referring to Chris's reply.

You can also refer to the link below about using the NativePDF feature:
https://docs.appeon.com/pb2019r2/pbug/ch20s03.html#Saving_as_PDF_using_PDFlib
e.g.:
dw_rpt.Modify ("DataWindow.Export.PDF.Method = NativePDF!")
li_ret=dw_rpt.SaveAs(ls_filename, PDF!, false)


If the issue persists, kindly please report this issue to our ticket system: https://www.appeon.com/standardsupport/newbug so it can be properly received and tracked. Please also provide a sample PB test case (with PBT / PBL) when you submit it to the ticket system.

 

Regards,

 

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

Hi Lynn;

  Did you turn on the NativePDF! feature either in ...

  • The DW Painter              // or
  • In the App's PB.INI file     // or
  • Set the NativePDF! options in the DWO at runtime via PowerScript

before issuing the SaveAs() command?

=> What are the PDF settings currently in use in your DWO(s)?

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.