Is it not possible to return a ceTe.DynamicPDF.Document from a WCF service to a console app or win app and then save/show it?
As I as add a service reference the console app no longer compiles.
And it creates a DataSources folder with some datasource file under the properties folder in the console project.
thanks,
voss
Return document from WCF service
Re: Return document from WCF service
Support · Mar 1, 2011Hello Voss,
It is not possible to return a Document object in a WCF service as the Document object cannot be serialized. In this case you will have to call the Draw() method on the document object which will give you the PDF output as a byte array and you can return this byte array in your WCF service. On the client side you can store this byte array in a file using File.WriteAllBytes(@"c:\TestWCF.PDF", byteArrayFromWCF) method.
Thanks,
ceTe Software Support Team.