Saving Object as System.IO.Stream
Posted on 2012-12-21
I am having issues converting my PDF object into a Byte() to print. I have a object called myPDF that has the following method definition:
myPDF.SaveMergedPDFToStream(outPDFStream AS System.IO.Stream)
My print routine has the following definition:
myPrinter.SendBytesToPrinter(Bytes() AS Byte)
I can make it work saving the file to disk and then reading it back in...but that seems pointless.