|
Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 9
|
Hello,
I like aspx to pdf control very much, but now I have a problem. I need to convert aspx page, that with plenty of controls like radio buttons,dropdown list,textboxes,gridview,checkbox and images to PDF.
Everything works fine but some controls are not displaying in the pdf.Mainly dropdown list is not working.
Are there any ways to fix the issue?
Thank you!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Everything should work. Please check the page with Google Chrome and see if your dropdown list renderings correctly. Our rendering result is most close to Google Chrome.
If Chrome renders correctly but ours does not, please try to isolate the problem into a small HTML file and send the file to us (ASPXToPDF ultimately calls HtmlToPdf.ConvertHtml to perform the conversion, so you can use the HTML to PDF feature to confirm the problem). We will PM you as to where to send the file.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 9
|
I am using ASPXTOPDF to convert aspx page to PDF. Right now we are using the DEMO version to make sure everything works fine before purchasing the licensed version.
There are two problems currently i am facing:
1. Is it possible to print pdf of certain contents of the page , for example the data between a particular table.
2.The second problem is that i mentioned earlier the dropdown list is not working .But it is working fine in google chrome.After executing the code to convert into pdf ,the values in the dropdownlist is not printed in the pdf format.But it is in the aspx webpage.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
As to your questions:
1. Yes. You simply set whatever you do not want to show's Visible to false before calling RenderAsPDF;
2. No. You will not get the drop down list items. You will get the drop down box on your PDF, but it is just a box "printed" on "PDF paper", it's not a interactive box that you can use to pick a value like you would be able to do it in a browswer. In another word, HTML to PDF does not convert input fields. If you wish to add input fields, uses PDF Creator (ACM) interface;
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 9
|
For the dropdown list i actually want the text that is displayed in the aspx page as it , when the pdf is printed , not to select from the pdf.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We tested that and it works fine. If it does not work for you, please try to update to the latest build first, if that still does not work, please isolate the problem into a test project and send it to us. Once we have that we should be able to tell you why.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 9
|
Thanks for the information, i will try it by updating it with latest build version.
Also i am using master page in my aspx page,but i want to print only the content inside contentPlaceHolder . How can be it possible with this aspx to pdf component.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There are many different ways to do that. You can apply a different CSS with “display:none” to contents in your master page so they won’t be visible; You can expose some methods from your master page and then call it from your content page to turn elements in your content page off; You can also put your content page into a user control and user a separate page and place only the user control in that page, then convert that page, etc. Details about any of these methods would be purely an ASP.NET/Web question so it would be beyond the scope of our support, but if you search online you should be able to find plenty of information how to do it.
The basic rule for ASPXToPDF is that it converts a full page, not a portion of the page. So whichever part you want to convert to PDF, get that part to show correctly in your browser first. For example, if your do not want show a Button in your browser, you would write the code to set that Button’s Visible to false. You do the same with ASPXToPDF. It’s just two steps: First, Get the right result in your browser. Second, call RenderAsPDF to turn the result into PDF. Whatever you want to show/hide occurs on the first step, not the second step.
Hope this helps.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, We have posted a new build (2011.2.71) that can convert part of the page instead of the whole page. See here for more details: http://doc.essentialobjects.com/library/4/htmltopdf/partial_page.aspxYou can download the new build from our download page. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 9
|
I have done a sample work using this ASPX to PDF control DEMO VERSION and uploaded to the server.This woks fine in local and then uploaded to server.But it gives error.
ERROR TEXT: Can not find file 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\eservices\776f2ee6\9c843af4\assembly\dl3\9be09a30\b9ee7d99_9581cc01\EO.Pdf.Html.dll', this file is needed to perform HTML to PDF conversion. Please make sure this file exists in the same directory as EO.Pdf.dll. For example, for an ASP.NET application, both EO.Pdf.dll and EO.Pdf.Html.dll should be in your application’s bin directory. SOURCE TEXT: EO.Pdf TARGET SITE: Void a(Boolean, System.String ByRef, System.String ByRef) STACK TRACE: at EO.Pdf.Internal.jw.a(Boolean A_0, String& A_1, String& A_2) at EO.Pdf.Internal.jw.c(Byte[] A_0, Int32 A_1) at EO.Pdf.Internal.j1.a(String A_0, Boolean A_1, String A_2) at EO.Pdf.Internal.j1.h()
Can u point what the error ??Is our Server not supporting this control ?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Did you place EO.Pdf.Html.dll in your bin directory as the error message indicated?
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 9/19/2011 Posts: 9
|
yes. EO.Pdf.Html.dll and EO.Pdf.dll are in the bin folder.After that this error is comming.
|
|