It works fine here too [PB5.20 WinXPx86]
1) Using the latest Printer_Lib download?
2) Print_Text(0, 60, IRSheader.s) is right on the edge of the paper, try Print_Text(40, 60, IRSheader)
3) Try a different colour too, using RGB e.g. Print_SetTextColor(RGB(000,000,255))
4) Easiest way to test is via a virtual printer like CutePDF Writer.
5) Print_StartPrinting(IrsNbr.s) and Print_Text(60, 60, IRSheader.s) should not have the '.s' after the variables - these values have already been declared. So: Print_StartPrinting(IrsNbr) and Print_Text(60, 60, IRSheader)
6) Likewise, IRSheader.s = "Pedido / Relatório de Assistência nº: " + IrsNbr
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
This is the Lib I'm using: Printer_Lib110_PB51X86. When I downloaded it it was the last one for the PB version I'm using: PureBasic 5.10 (Windows - x86).
IdeasVacuum wrote:For the Image, just give the x,y,w values
no image height?
IdeasVacuum wrote:Note also that you will need: iPrtUnits = Print_GetUnits()
I'm using the Lib version. But Checking the Printer_Lib.res in the directory, found this file: Printer_Lib_Res.res. This does not look right, and may be the problema...