This is a migrated thread and some comments may be shown as answers.

Pdf rendering differs from time to time

8 Answers 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 23 May 2013, 07:47 AM
I have a batch running twice a week, sometimes pdf renders correctly, and sometimes it doesn't.

See attachments, the police I use is calibri, and it has been correctly installed.

Using Telerik Reporting 6.2.12.1017.

Can you tell me what's wrong ?, theses reports are sent automatically by mail.
The batch is started by the task scheduler, on my credentials.

Thanks for your help

8 Answers, 1 is accepted

Sort by
0
Alexandre
Top achievements
Rank 1
answered on 24 May 2013, 12:37 PM
It seems that the scheduled task generate wrong rendering, and manual launch of my console app renders pdf correctly.

What can be the differences ?
The task is running with my credentials.

Does Telerik reporting needs interactive mode while running ?

0
Alexandre
Top achievements
Rank 1
answered on 24 May 2013, 02:53 PM
To add more details and be clear about what is happening :

Using Telerik.Reporting ;6.2.12.1017
Generating some xls and pdf from a console application.
Pdf is rendered correctly when console application launched manually.
Pdf is badly rendered when console application is launched by a scheduled task using the same account.
Pdf is also badly rendered when same code is hosted in a windows services, using the same account
Pdf is also badly rendered when same code is hosted in a windows services, running as local system with allow service to interact with desktop checked.

I don't know what to do next.

I've read this is usual to render report and use scheduled tasks, I hope I'll get some help.

0
Stef
Telerik team
answered on 27 May 2013, 09:51 AM
Hi Alexandre,

Since the issue issue is not reproducible at our side, please upload your code and post a download link to it, so we can review it locally. In addition, let us know what product do you use to preview the PDF document in different occasions.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Alexandre
Top achievements
Rank 1
answered on 28 May 2013, 01:55 PM
Hi,

Here is the test project, I'm able to reproduce on a Windows 2003 R2, calibri font has been installed manually and is ok.

Visual studio 2012 project

Here are the two results :
Pdf Rendered correctly
And Rendering is wrong when launched with scheduled task and no user logged on

I always use the same pdf reader : Adobe reader X, on the same computer.

I hope I can get help on this :(
0
Stef
Telerik team
answered on 31 May 2013, 02:11 PM
Hello Alexandre,

The issue is not reproducible at our side. We have tested your application by running it manually and via Windows Task Scheduler on the same machine. Checking the properties of the exported documents points the correct fonts are embedded.

On the other side in the provided incorrectly exported PDF file the font has fallen back to Arial. Please double-check if all fonts are properly installed the machines where the application is run.

Let us know if you need further help.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Alexandre
Top achievements
Rank 1
answered on 31 May 2013, 03:39 PM
Hi,

I did some trace using procmon and saw no differences :

-Good manual launch (COMPUTER1)
-Bad scheduled launch (COMPUTER1)
-Good scheduled launch on another computer (COMPUTER2)

The calibri font seems to be used on each run, I don't know what to check next, Is there some verbose mode I can activate to see what going on ?
Maybe I can bind to a rendering event and dump something ? Specially to the textboxes that doesn't render correctly ?
0
Alexandre
Top achievements
Rank 1
answered on 03 Jun 2013, 08:09 AM
Reinstalling the fonts using this link : http://www.microsoft.com/en-us/download/details.aspx?id=6

Calibri 1.02, my application is now running correctly when scheduled.

This seems to be a compatibility problem with latest version of font and oldest OS.

Will try on live environment to close this topic.
0
Alexandre
Top achievements
Rank 1
answered on 06 Jun 2013, 07:40 AM
Hi,

Finally the problem has been solved by desintalling the Calibri font, that I've installed in version 5.72, from my office 2013.
I had it installed by pasting it in the fonts folder.
And installing the Powerpoint viewer package, that installs Calibri fonts in version 1.02.

This is strange that the font was used correctly excepted when launched using scheduled task, but now everything is ok.

Thanks
Tags
General Discussions
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Alexandre
Top achievements
Rank 1
Stef
Telerik team
Share this question
or