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

Blank report in web form viewer

1 Answer 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 19 Oct 2010, 03:47 AM
I am building a report generator based on metadata from our database (there will be to many varied reports to generate them with the designer).  The reports are dynamically generated and passed to the report viewer.  In the web forms report viewer, they come up blank.  I have an external windows console utility that reads the same metadata definitions (using the same class as the web form version) and then exports them to .pdf files.  The pdf files generate fine, but the web form viewer is blank.   I am using a real simple template which uses no data source and contains one text box in the details section with the message "hello world". 

Any suggestions on how to diagnose this further?

Thanks

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 19 Oct 2010, 03:40 PM
Now I know what is happening.  It appears that the webform report viewer is calling the no parameter constructor several times.  In my design, I have a constructor on the report that takes a configuration object.  This constructor digests the configuration class and builds the necessary report objects and adds them to the Items collection.  It appears that this instance of the object is being tossed and a new instance is being used.  I am unsure how to connect these two instances.  In addition, this is all running within a SharePoint web part.
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or