Hi,
I'm using pb.net 12.6 WCF Target. Calling from a pb classic 12.6 application. The WCF 12.6 tarshould load a datawindow into a datastore, retrieve, and then print. I tried using both the datastore.print(false,false) and Printdatawindow(). With datastore.print(false) the print job just sits spooling forever with no data. With Printdatawindow, it prints blank pages.
My code in the pb.net WCF function is very simple
datastore ds_test
sqlca.DBMS = 'OLE DB'
sqlca.AutoCommit = True
sqlca.DBParm = "PROVIDER='SQLOLEDB',DATASOURCE='XXX',PROVIDERSTRING='database=xxx;Trusted_Connection=yes;'"
Connect using sqlca;
ds_test = create datastore
ds_test.dataobject = "d_test1"
ds_test.SetTransObject(sqlca)
ds_test.Retrieve()
long l_job
i_job = PrintOpen( )
PrintDataWindow(l_job, ds_test)
PrintClose(l_job)
return ds_test.RowCount()
I set the STAOperationBehavior Operation Attribute.
Anything else to try?
Ephraim