Due to a printing problem, Ive had to change my control to an MSHFlexgrid (rather than the MSFlexgrid).
This is fine, except for one little niggle...
When I press print, the MSHFlexgrid disappears. No matter how many refreshes I do it will not reappear on the form.
Only if I close the form and open it again can I see the grid again.
My code for Print is simple, but I dont want any more hassle with it:
Code:
cmdPrint_Click()
Dim old_width as Integer
MSFlexGrid_Name.width=printer.width 'makes it full length of page
Printer.PaintPicture MSFlexGrid_Name.Picture, 0, 0
Printer.EndDoc
MSFlexGrid_Name.width=old_width ' this makes it full width of the page
End Sub
If someone could just guide me in the right direction as to why the grid is disappearing or what I have to do to make it reappear.
I have even created a form refresh function, and tried to call it after the print command, but that has not worked either.
Please can someone help?