|
Rank: Newbie Groups: Member
Joined: 5/16/2014 Posts: 2
|
Hi,
I recently started working with Essential Objects HTMLTOPDF. The pdf is creating perfectly with all images. The only problem so far I noticed is that the pdf needs to be saved on the file system. Is there any code which does not save the PDF on the computer and opens directly once PDF is created. Below is the code I am using in my project.
EO.Pdf.PdfDocument doc = new EO.Pdf.PdfDocument(); EO.Pdf.HtmlToPdf.ConvertHtml(sb.ToString(), @"C:\result.pdf");
Please help with this issue. This will help us in deciding the purchase of the product.
Thanks, Surbhi Agarwal
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, That depends on what you use to open the PDF file. If you intend to use Adobe PDF reader to open the file in standalone mode, then you have to have a file because standalone Adobe PDF Reader can only open a file. If your code runs on a Web server and you intend to send the file directly to the client browser, then you do not have to have a file. See here for more details: http://www.essentialobjects.com/doc/4/web/pdf_on_demand.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/16/2014 Posts: 2
|
Hi,
The code mentioned in the article is using ConvertUrl() where I need to specify url. I wanted to convert the html code to PDF. Also, I am having the above code on web user control(ascx). Is the control causing the issue? And, on the grid when clicking the linkbutton the PDF should open. Am I missing anything in code?
Any inputs?
Thanks, Surbhi
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, You can take a look of these two help topics and see if it helps you: http://www.essentialobjects.com/doc/4/web/aspxtopdf.aspxhttp://www.essentialobjects.com/doc/4/web/mvc.aspxI recommend you to give the whole documentation and the samples a quick glance so that you will have an idea of what other options/features are out there. We will help you further if you have any specific questions after that, but to analyze your specific requirement and give you step by step guidance on implementation is beyond the scope of the free technical support. So we will not be your shortcut to skip the documentations. Hope you understand. Thanks!
|
|