Static Reporting and Printing issues in VB.NET 2003

Posted on 2004-11-25
Medium Priority
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

Accepted Solution

RacinRan earned 1500 total points
ID: 12680931
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

850 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