I have a problem regarding printing of text included in a picture box. I have used the following code:
The text appears in the picture box on the screen, but when printing it is empty. Is it necessary to use the printer.print - notation for all instaed?Code:Private Sub Command1_Click() Picture1.Cls Picture1.FontName = "arial" 'Printer.Print ; Tab(10); "" Picture1.FontSize = 10 Picture1.Print ; Tab(10); "Date: "; Date Picture1.Print ; Tab(10); "Project name: " Picture1.Print ; Tab(10); "Project number: " Picture1.FontSize = 16 Picture1.FontBold = True Picture1.Print ; Tab(10); "" Picture1.Print ; Tab(6.5); "Test of print" Picture1.Print ; Tab(10); "" End Sub Private Sub Command2_Click() PrintForm End Sub




Reply With Quote