1. radha rani
  2. PowerBuilder
  3. Monday, 4 June 2018 18:24 PM UTC

Hi,

 

I got my data in datastore ,now i want to save that data  in pdf in one location (c:/test/pbreport.pdf)

ds_email = create datastore
ds_email.dataobject = "d_display_pltm_mngr_edit"
ds_email.settransobject( SQLCA)
ll_rows = ds_email.retrieve(date('01-01-2020'),'day')
****************************
how to write code for saving it in pdf in location c drive
 
 
P.S new to pb ignore my ignorance.

 

Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 08:01 AM UTC
  2. PowerBuilder
  3. # 1

Hi Radha,
please remember

dw_email.Modify("DataWindow.Export.PDF.Method = NativePDF!")

before you call SaveAs().

ds_email.SaveAs("filename.pdf", PDF!, true) is not enough.

Best,
Marco

Comment
There are no comments made yet.
Shenn Sellers Accepted Answer Pending Moderation
  1. Monday, 4 June 2018 23:51 PM UTC
  2. PowerBuilder
  3. # 2

ds_email.SaveAs("", PDF!, true)

Comment
  1. radha rani
  2. Tuesday, 5 June 2018 15:05 PM UTC
thnks..

  1. Helpful
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.