Solved

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

Posted on 2004-04-30
7
779 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
ID: 10959187
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 166 total points
ID: 10960140
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
ID: 10960242
thanks emor
0
 
LVL 1

Assisted Solution

by:T_Herman
T_Herman earned 166 total points
ID: 10963745
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
ID: 12193373
This question may be closed.  Thanks to all.
Deeb
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about a problem I had getting the GPS LocationListener working.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

778 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