Solved

??Easy way to print a VB datagrid data using VB datareport designer

Posted on 2004-04-30
7
773 Views
Last Modified: 2012-06-27
I have a VB form that display data in a datagrid and I want to give the user the option to print it.  How can I add the datagrid fields to the report designer? I don't want to recreate the connection all over  when I already have it on the display form.
Thanks,
Deen
0
Comment
Question by:dstratford
7 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 168 total points
Comment Utility
0
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 166 total points
Comment Utility
Yes you can use the PrintGrid method I wrote and that Mika613 point you to but that doesn't use the DataReport.

To use the Datareport and to avoid binding it to a DataEnvironment, you could bind your report at runtime: http://support.microsoft.com/default.aspx?scid=kb;en-us;190411&Product=vb6 and http://support.microsoft.com/default.aspx?scid=kb;en-us;289793&Product=vb6
0
 
LVL 48

Expert Comment

by:Mikal613
Comment Utility
thanks emor
0
 
LVL 1

Assisted Solution

by:T_Herman
T_Herman earned 166 total points
Comment Utility
Just to throw in my two cents since I use crystal reports and report on unconnected data all the time.  Create a report with XML data as your source.  You can dump the results of any datagrid to an XML file and then feed that into the report you created.  It's quit simple.
0
 

Author Comment

by:dstratford
Comment Utility
This question may be closed.  Thanks to all.
Deeb
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

8 Experts available now in Live!

Get 1:1 Help Now