Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Flexgrid 1

Status
Not open for further replies.

gerime

Programmer
Aug 3, 2001
3
US
I have been able to do just about everything with the Flexgrid control except successfully print. Does anyone have any suggestions? Does anyone know of good sample code that I could get my hands on? I have tried Planet Source Code but the code sample wern't good for my application. I would especially like to use the commondialog.showprinter method.
 
I found a sample on PSC, i think it was near the end of the list. Searched for printing grids i think. Otherwise the only way i found is to copy the grid to a picturebox then print the picturebox
Dragnut
 
Hi!

Do try this,

commondialog.showprinter
'your print uot would automatically go the printer selected!

Dim t%, s%
For t% = 0 To Grid1.Rows -1
Grid1.Row = t%
For s% = 0 To Grid1.Cols -1
Grid1.Col = s%
Printer.Print Grid1.Text
Next s%
Next t%

enjoy programming!
(mail: hhbajaj@yahoo.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top