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

Howto print inside of an MsFlexGrid Control? 1

Status
Not open for further replies.

aliinal

Technical User
Jun 26, 2001
104
TR
Is there an easy way to print th msflexgrid's data?
(with background colors, font styles etc.)

thanks for ur help..
 
the only way I have found to print a grid is to copy it to a picturebox then print the picture. I think it would print colors and all. I try printing mine, and the background is gray (on b/W printer)so colors should come out. I'm trying to print it with no colors, just the text but...
Dragnut
 
Howto copy it to a picturebox????
 
I copy it to the clipboard then paste it to the grid ie
clipboard.setdata mygrid.picture,2
picture1.picture=clipboard.getdata
 
I haven't worked with that grid for awhile, but if I remember right there is a newer version of the flexgrid that actually has a print function within it now :)

 
Which grid???? none of the ones i have (flex, hflex, or even a plain old grid) have anything remotely connected with printing them :)
Dragnut
 
First of all thanks dragnut for your tip.
It really works fine and that's what i want.
But i'm living an interesting problem with this.

I've coded my program in Win98 & VB 6.0 and it worked without any problem on my machine. Everything was fine.
After that i've compiled it and installed it on a win95 machine. Everything seems to be fine but in copy-print process, the 3rd and the 4th column (indexed 2-3) of the grid is truncated and in the output i get columns 0-1-4-5-6-7-8.....

Why can it be?
it works fine on my machine..
Is this because other machine is win95 or else?

Thanks again for your help. And need more help :)

P.S. The first two column of my grid is fixed (indexed 0-1). So the truncated colums are the first two columns of my table (cus first two is fixed).

(Sorry for my English)
 
Sorry, cant help with that one, Im basically a beginner kind of, and I've been looking for a way to print grids for about 3 weeks now, thats the reason i had the info.
Dragnut
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top