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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have an MSHFlexGrid in my VB prog 1

Status
Not open for further replies.

PFairhurst

Programmer
Jul 30, 2002
18
GB
I have an MSHFlexGrid in my VB program and I would like to have a command to print it out but I'm stuck on how to do that! Is there a way of doing this directly from the program or could I export the grid to an Excel spreadsheet and print if from there? I want to able to do all this from my VB program though. Thank you
Pete
 
Use:

Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc

This will print the entire contents of the FlexGrid to the printer.

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top