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

Blank Reports

3 Answers 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 30 Oct 2008, 12:41 PM
I am creating a pdf report programmatically to be sent as an email attachment in my app. The reports work fine on my development machine (XP), however when I run it on a Vista test machine, only the header, footer, and one group label shows up on the report. This seems to have something to do with the size of the report since the group label did not show either until I reduced the width of the page.

Any help would be much appreciated

Thanks
John

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Oct 2008, 01:40 PM
Hi John,

If this works fine on your machine and you have not altered the report size, then we do not see how this could happen. Please check your connectionString - whether you're connecting to the database server and pulling up data correctly. The easiest way would be to see if you can preview any data from your dataadapters.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John
Top achievements
Rank 1
answered on 30 Oct 2008, 08:20 PM
I can preview the reports just fine. I did notice that in the generated source for the report there is a connection string. I used the wizard to create the report so that's probably how it got there. How can I make the report use the connection string in the app config file? Is this possible when I used the wizard to create the report?

Thank You
John



0
Steve
Telerik team
answered on 31 Oct 2008, 07:14 AM
Hi John,

Well, that is exactly what I meant in my previous reply - the connectionString should be different on the new machine and needs to be changed. Whether you would do this by hand through the dataset property grid (see screenshot) or in the app config file is up to you. If the latter, the following code library should be of assistance: Use the connectionString from your app's config file.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Steve
Telerik team
John
Top achievements
Rank 1
Share this question
or