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.
Unfortunately, activation email could not send to your email. Please try again.

Create a PDF from a VB Class

Thread ID:

Created:

Updated:

Platform:

Replies:

92037 Dec 15,2009 07:23 PM Dec 17,2009 02:41 AM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Ronald Rasmussen
Asked On December 15, 2009 07:23 PM

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)
Else
doc.Save("Sample.pdf", Response, HttpReadType.Open)
End If

Thanks.

Ron

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

Hi Ron,

Thanks for your interest in Syncfusion products.

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

http://help.syncfusion.com/support/Pdf.Windows/Website1.zip

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

Regards,
Sinthuja.S

CONFIRMATION

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.

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.

;