hi friends is there a way to print msflexgrid in a way that is shown on screen?

(let me explain more,what I mean is I have some pieces of codes for printing msflexgrid and the work but the problem is;in my forms in many lines I have

if ......
.... .width=0
end if

and the same for columns,in order to make rows and columns of flexgrid invisible)

but when I print, invisible rows and columns appear,I want exactly a print of what is shown on screen.




thank you so much

looking forward for your valuable ideas