?
Solved

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

Posted on 2004-04-30
7
Medium Priority
?
798 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 672 total points
ID: 10959187
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 664 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 664 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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 …
Six Sigma Control Plans
Suggested Courses

770 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