Question : powerbuilder datastore print to file in pcl format

Hi Folks:
   I need to do a "print to file" of a datastore and it has to be in the PCL format. I have tried
  "lds_data_store.Object.DataWindow.Print.Filename" but the code fails.
   Can you help?
Thanks

Answer : powerbuilder datastore print to file in pcl format


Also,
Try the below code without checking for lb_test_bills, it worked for me.

n_ds      lds_report_data_store
lds_report_data_store = CREATE n_ds
lds_report_data_store.DataObject = ls_datawindow_name
lds_report_data_store.SetTransObject(SQLCA)
ll_retrieve_return = lds_report_data_store.Retrieve(ldt_report_date)
lds_report_data_store.Object.DataWindow.Print.Orientation = li_printer_paper_orientation
lds_report_data_store.Object.DataWindow.Print.Duplex = li_printer_simplex_duplex
lds_report_data_store.Object.DataWindow.Print.Paper.Size = li_printer_paper_size

lds_report_data_store.Object.DataWindow.Print.Filename = "c:\test_lib\test_report.pcl"
lds_report_data_store.Print()


Cheers,
Rosh
Random Solutions  
 
programming4us programming4us