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

Difference in preview and .pdf result

3 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ronald Evers
Top achievements
Rank 1
Ronald Evers asked on 24 Feb 2011, 06:02 PM
Hey,

I have an issue generating .pdf reports with the Telerik reporting software. The problem is that I've changed the font size in the code behind of the report but this isn't shown in the pdf, which still has the old font size.

Please see the screenshots for an example. Please dont mind the Dutch. I added numbers so it's easier to see.

So I changed the font of some of the text fields like this:

 TextUserControl.Style.Font.Size = new Unit(12);

And in the .pdf file it´s still about 16 points.
What can I do to fix this?

Thanks.

PS. I'm using the Silverlight tools.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Feb 2011, 05:50 PM
Hello Ronald,

Since we were not able to reproduce the problem on our end, we would appreciate if you provide us with a sample that exhibits the problem. Things that are not clear:
  • where exactly is that code executed
  • did you export the report to PDF from the viewer?

Best wishes,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ronald Evers
Top achievements
Rank 1
answered on 10 Mar 2011, 04:54 PM
Hey,

The problem seems to be that when I set properties of controls in the code behind of the report it doesn't use them when printing. For example when I make a control invisible it in the MasterReport.cs it shows it in the preview but doesn't show it in the downloaded PDF. How can I make this work? Sometimes I want to show a text field and sometimes I dont. I also want the font to be a different size depending on how much text is in a text field.
0
Steve
Telerik team
answered on 16 Mar 2011, 11:27 AM
Hi Ronald Evers,

We're still unable to reproduce such behavior on our end and would appreciate if you provide us with a runnable sample project that exhibits the problem. To do that, please open an official support ticket and attach the project there.

Kind regards,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Ronald Evers
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ronald Evers
Top achievements
Rank 1
Share this question
or