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

Disappearing Page From Viewer

2 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 09 Nov 2011, 07:51 PM
I'm creating a report to use as a service order print out for my companies software. For some of the reports the customers need to have custom fields and such designed by them. We built a custom designer, and using those fields, rebuilding custom portion into the report. I was printing out a page to use as a reference as I fix some alignment issues, and I notice none of the custom fields are printing. I currently have them set up as a sub report on a master report and seemed to work with the report viewer, but nothing else.

The first attachment  Page4ReportViewer.png is what the viewer is showing currently in my application.
The second attachment Page4WhenSavedAsPDF.png is what the pdf version and printed version will resemble.

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 10 Nov 2011, 09:48 AM
Hello Jacob,

According to your explanation you're creating or altering existing reports programmatically and this is a custom solution. We would not be able to provide any guidance as to what is happening without something runnable on our end that we can look into. If the data is there when showing the report in the viewer, but missing upon print and export to PDF (which is the same for the web report viewer), then most likely your custom logic/methods for the report definition creation is not getting invoked upon export.

Provide more info on how you bind the report - we highly recommend using our Data Source Components or NeedDataSource event to connect data. The NeedDataSource event is used only for binding the report and is cached, so if you're trying to alter or create report definition items in it, move that code to ItemDataBinding instead. If you are using parametrized constructor for binding purposes, be aware that the provided export/print functionality always uses the default constructor and parametrized constructors would not be invoked.

All the best,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Jacob
Top achievements
Rank 1
answered on 10 Nov 2011, 06:44 PM
That was exactly the info I was looking for. Thank you!
Tags
General Discussions
Asked by
Jacob
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or