We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create a PDF from a VB Class

Thread ID:





92037 Dec 16,2009 12:23 AM UTC Dec 17,2009 07:41 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Ronald Rasmussen
Asked On December 16, 2009 12:23 AM UTC

I would like to add code to a VB CLass so I can reuse it in various ASPX pages. My problem is I get an error with the response object (See below). This code works fine in an ASPX page.

If bOpenInBrowser = True Then
doc.Save("Sample.pdf", Response, HttpReadType.Save)
doc.Save("Sample.pdf", Response, HttpReadType.Open)
End If



Sinthuja S [Syncfusion]
Replied On December 17, 2009 07:41 AM UTC

Hi Ron,

Thanks for your interest in Syncfusion products.

Response object must be passed as a parameter to the function in VB class.


Please try running the above sample and let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon