Solved

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

Posted on 2004-04-30
7
780 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

A short article about problems I had with the new location API and permissions in Marshmallow
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

831 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