DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
HTML to PDF  
DwZone Forum Index -> HTML to PDF

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 71 to 80 of 330 (Total: 187) First |  Prev |  Next |  Last  
 Subject Author Date  
   problem with source  
View this persons public profile  Hassan   12:41 4 Feb 2013  
   Re: problem with source  
View this persons public profile  Gianluigi   10:45 5 Feb 2013  
   Re: problem with source  
View this persons public profile  Hassan   11:07 5 Feb 2013  
   Re: problem with source  
View this persons public profile  Gianluigi   12:22 5 Feb 2013  
   a question about fonts  
View this persons public profile  Hassan   23:44 3 Feb 2013  
   Re: a question about fonts  
View this persons public profile  Gianluigi   9:48 4 Feb 2013  
    The BODY tag is missing  
View this persons public profile  Adrian Smith   9:39 5 Dec 2012  
 
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
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: The BODY tag is missing  
View this persons public profile  Gianluigi   10:37 5 Dec 2012  
   HTML to PDF Connecting...  
View this persons public profile  Kevin Robson   15:42 18 Sep 2012  
   Re: HTML to PDF Connecting...  
View this persons public profile  Gianluigi   8:33 19 Sep 2012  
Last Visit: Saturday 10 May, 2025 5:35 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-2

Jump to: