Hi
How can I create document from memory stream in windows application (vb net 2008) without saving it to disk , can i use DrawToWeb method in winform
DrawToWeb method in winform
Re: DrawToWeb method in winform
Support · Mar 23, 2011Hello,
Yes, you can merge the PDF document which is in the form of MemoryStream without any problem. You will need to use PdfDocument class constructor which tales MemoryStream object as parameter and create an object of PdfDocument. Then you can use this PdfDocument object to build MergeDocument object. Below is the code for it.
Dim pdf As New PdfDocument(streamObj)
Dim document As New MergeDocument(pdf)
document.Draw("C:\MyDocument.pdf")
The DrawToWeb method is used to render the generated PDF document in browser using web applications.
Thanks,
ceTe Software Support Team
Re: DrawToWeb method in winform
Forum member · Mar 24, 2011Thanks for yourreply
I thing that I did not make myself clear , what I want to do in Winform is automatically generate a PDF doucument using either DynamicPDF Merger or the Generator and then draw (show) it to the user without saving it to disk.
Another question please how can use in windows application the WebBrowser Control to viwe and draw automatically genrtaed a PDF doucuments
Regards,
Re: DrawToWeb method in winform
Support · Mar 24, 2011Hello,
You can use any control which can open the PDF stream which is in the form of memory stream. We have a product called DynamicPDF Viewer which you can add it to the windows form and open the generated PDF document dynamically. You can open the document which is in the form of MemoryStream using our DynamicPDF Viewer control. You will need to use the OpenStream method of the Viewer control.
Please feel free to download the evaluation version of DynamicPDF Viewer for .NET product from our website at: httphttp://www.DynamicPDF.com/Products/DynamicPDFViewer/Download.csp
. Also refer the sample examples downloaded with the product download. Also refer the documentation on how to add the Viewer control to the windows form at: http://www.DynamicPDF.com/Support/NET_Help_Library_11_01/DynamicPDFViewerGettingStartedQuickStart.html
.
Thanks,
ceTe Software Support Team.