Welcome Guest Search | Active Topics | Sign In | Register

Issue in loading JQuery file Options
Posted: Thursday, March 19, 2015 8:13:28 AM
Rank: Member
Groups: Member

Joined: 1/13/2015
Posts: 14
Hi,

While converting Url into Pdf SOMETIMES we have issue in loading Jquery files. ( JQuery file is not at all loaded ).

Code used as :

HtmlToPdfOptions options = new HtmlToPdfOptions();
options.OutputArea = new RectangleF(0.5f, 1.2f, 7f, 9f);
options.PageSize = PdfPageSizes.A4;
options.NoScript = false;
options.NoLink = false;
options.JpegQualityLevel = 100;
options.RetrieveNodeText = false;
options.MaxLoadWaitTime = 300000;
options.NoCache = true;
options.BaseUrl = **** ( its optional , even though we are setting this property ).

options.UserName = *****
options.Password = *****


foreach (string pageUrl in pageUrls)
{

HtmlToPdf.ConvertUrl(pageUrl, EoDocument, options);

}

Please help on this as this is blocking point.

Thanks ,
Ranjeet KUMAR
eo_support
Posted: Thursday, March 19, 2015 9:44:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Please try to use the solution mentioned in this thread and see if it works:

http://www.essentialobjects.com/forum/postst8340_EOPdf--SVG-renders-blank-using-NVD3.aspx

If that still does not work, please try to isolate the problem into a test app and send us the test app. See here for instructions on sending test app:

http://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Posted: Thursday, March 19, 2015 11:00:51 AM
Rank: Member
Groups: Member

Joined: 1/13/2015
Posts: 14
Thanks for your response.

But why is it not loading SOMETIME as it will be executing same piece of code everytime ?
eo_support
Posted: Thursday, March 19, 2015 11:34:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Ranjeet wrote:
Thanks for your response.

But why is it not loading SOMETIME as it will be executing same piece of code everytime ?


You will need to debug your code to find that out. It's unlikely that's is because JQuery not loaded. It might be that a script error occurred somewhere. You can use the built-in debug console feature to find out:

http://www.essentialobjects.com/doc/4/htmltopdf/js.aspx

Thanks!
Posted: Friday, March 20, 2015 10:45:10 AM
Rank: Member
Groups: Member

Joined: 1/13/2015
Posts: 14
Hi,

There is partial rendering of page. Using HtmlToPdf.DebugConsole = Console.Out; we found following issue in one of the jquery.js (send separate mail to support). We never this issue in Essential Studio Syncfusion.


Case 1:

undefined:
JS ERROR:
TypeError: 'undefined' is not an object

Case 2:

undefined:
JS ERROR:
ReferenceError: Can't find variable: jQuery

undefined:
JS ERROR:
ReferenceError: Can't find variable: jQuery

undefined:
JS ERROR:
ReferenceError: Can't find variable: jQuery

undefined:
JS ERROR:
ReferenceError: Can't find variable: $

undefined:
JS ERROR:
ReferenceError: Can't find variable: $

We are blocking with this point to roll out into production..
Can you please help !!!
eo_support
Posted: Monday, March 23, 2015 11:10:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Can you send us a working test project instead of just one script file? We need to be able to run it here to reproduce the problem first.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.