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:

Created:

Updated:

Platform:

Replies:

92037 Dec 16,2009 12:23 AM UTC Dec 17,2009 07:41 AM UTC ASP.NET Web Forms (Classic) 1
loading
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)
Else
doc.Save("Sample.pdf", Response, HttpReadType.Open)
End If

Thanks.

Ron

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.

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.

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

;