• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 469
  • Last Modified:

How to print MS Access table from VB.NET application?

My VB.NET application received data from MS Access database, and I need to add a button on the main form "Print all products" that is sending to print all "Products" table from the database...
How can I do it?

Thank you.
0
dba_netanya
Asked:
dba_netanya
  • 3
1 Solution
 
armoghanCommented:
Hi dba_netanya,
SO may ways to do it
1. write all of them in a Tab separated text file and send it to print using VB.NET using Process
something liek
        Dim pr As Process = New Process
        pr.StartInfo.FileName = ffile
        pr.StartInfo.Verb = "Print"
        pr.Start()


Cheers!
0
 
armoghanCommented:
dba_netanya,
2. You may also use crstal report and add data in it the way you want and then you can print it

0
 
armoghanCommented:
dba_netanya,
If everything is in Datagrid. See this artcile for printing it
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vbcode/html/vbtskCodeExamplePrintingDataGrid.asp
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now