Static Reporting and Printing issues in VB.NET 2003

Hey ppl,

Have the following situation.......

Basically have a form that has a panel docked on the left and another panel docked on the right. The left panel serves as a type of summary while the right panel (scrollable) contains many fields which are populated via 3 seperate datasets. What I want to do is be able to print the right panel (represents the layout of a real life form) based on the data that is currently displayed on that form. I have tried using crystal reports but I dont want to have to requrey the database as it is a pain using the queries.....Just want to be able to use the static data which is already on that form for printing...Can you pass static data to a report? (ie no query required)....Or is it easier just to print the panel directly? If so, how can you do this so not only is just the right panel printed but also is resized automatically to fit one page.....Please let me know if there are other methods also...


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Since you have the data in datasets already, you should be able to pass those datasets directly to the Crystal report(s) using the SetDataSource property.  

If you have trouble try this:

The dataset structure needs to match that of the Crystal report.  What I've done before is created my own 'strong-typed' dataset by creating an .xsd file.  Then I bind the crystal report to that .xsd file at design-time and that allows crystal to get the structure correctly so you can pass the dataset to it at runtime.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.