noreenburke
asked on
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.Dat aWindow.Pr int.Filena me" but the code fails.
Can you help?
Thanks
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.Dat
Can you help?
Thanks
ASKER
Hi Rosh::
This is the code that I am running:
n_ds lds_report_data_store
lds_report_data_store = CREATE n_ds
lds_report_data_store.Data Object = ls_datawindow_name
lds_report_data_store.SetT ransObject (SQLCA)
ll_retrieve_return = lds_report_data_store.Retr ieve(ldt_r eport_date )
lds_report_data_store.Obje ct.DataWin dow.Print. Orientatio n = li_printer_paper_orientati on
lds_report_data_store.Obje ct.DataWin dow.Print. Duplex = li_printer_simplex_duplex
lds_report_data_store.Obje ct.DataWin dow.Print. Paper.Size = li_printer_paper_size
lb_test_bills = lds_report_data_store.Obje ct.DataWin dow.Print. Filename = "c:\test_lib\test_report.p cl"
lb_test_bills is now "False"
Thanks for your help
This is the code that I am running:
n_ds lds_report_data_store
lds_report_data_store = CREATE n_ds
lds_report_data_store.Data
lds_report_data_store.SetT
ll_retrieve_return = lds_report_data_store.Retr
lds_report_data_store.Obje
lds_report_data_store.Obje
lds_report_data_store.Obje
lb_test_bills = lds_report_data_store.Obje
lb_test_bills is now "False"
Thanks for your help
Hi,
did u try the code that ive pasted above?
If it works fine for u, then guess the problem could be with using a datastore user object.
First try the code ive given above and let me know if its works for u. Then we cud take it further from there to make ur code work!
Cheers,
Rosh
did u try the code that ive pasted above?
If it works fine for u, then guess the problem could be with using a datastore user object.
First try the code ive given above and let me know if its works for u. Then we cud take it further from there to make ur code work!
Cheers,
Rosh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Rosh:
Removing the return value worked.
Thank you
Removing the return value worked.
Thank you
Datastore ds_1
ds_1 = Create Datastore
ds_1.DataObject = 'd_test
ds_1.SetTransObject(SQLCA)
ds_1.Retrieve()
ds_1.Object.DataWindow.Pri
ds_1.Print()
I tried the above code and it creates a file 123.pcl which i can open with Microsoft Office Document Imaging and print it!
Are u geting any error?
Cheers,
Rosh