Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-30
7
Medium Priority
?
808 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Six Sigma Control Plans
Starting up a Project

618 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