Hello,
How do I print the contents of an MSFlexGrid to a printer, or even simply to a .txt or .xls file that I can open in
Notepad, Word or excel then print?
At the moment I am only able to read the first cell of the MSFlexGrid into either a .txt or .xls file...
Below is code I am working with at the moment:
Any help would be greatly appreciated, thanks very much,Code:Private Sub Command2_Click() Dim dTEXTFILE As String Dim dTEXT As String dTEXTFILE = "C:\FILE.XLS" dTEXT = MSFlexGrid1.Text Open dTEXTFILE For Output As #1 Print #1, dTEXT Close #1 End Sub
Andy............




Reply With Quote