Static Reporting and Printing issues in VB.NET 2003

Posted on 2004-11-25
Last Modified: 2010-04-23
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...


Question by:aaronman
    1 Comment
    LVL 3

    Accepted Solution

    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.


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now