Hi,
I've downloaded version 1.3.3 of HTML to PDF but whenever I try to use it I get a ASP.NET error (shown below). I've tried using the same "source page" on version 1.2.3 (of HTML to PDF) and it works ok (although all the text is bold) so I don't think it's a problem with the source file.
I'll send you an email with a copy of the .htm source file the extension creates (in the PDF folder) which looks fine when viewed from IE and does contain the body tags.
The ASP.NET error is:
Warning!! DwZone.it Asp HTML to PDF error: Error on Asp.Net application Url:http://ap-srv/dwzAspPdf/PdfMake.aspx
Server Error in '/' Application. --------------------------------------------------------------------------------
The BODY tag is missing Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: The BODY tag is missing
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration> <system.web> <compilation debug="true"/> </system.web> </configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[Exception: The BODY tag is missing] HtmlToPdf.Utils.getBody(String& str) in D:\Lavori\_Extension\_ASP\Asp HTML to PDF\HtmlToPdf_ItextSharp\Utils.vb:838 HtmlToPdf.TagList..ctor(String ContentPage, Hashtable& StyleClass, en_UseFont Use_Font, String Font_Folder) in D:\Lavori\_Extension\_ASP\Asp HTML to PDF\HtmlToPdf_ItextSharp\Parser.vb:30 HtmlToPdf.CreatePdf.Create() in D:\Lavori\_Extension\_ASP\Asp HTML to PDF\HtmlToPdf_ItextSharp\CreatePdf.vb:441 ASP.dwzasppdf_pdfmake_aspx.Page_Load(Object sender, EventArgs e) +39 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42 System.Web.UI.Control.OnLoad(EventArgs e) +132 System.Web.UI.Control.LoadRecursive() +66 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456 |
|
|