Le forum (ô combien francophone) des utilisateurs de Powerbuilder.




Bonjour,
Est-ce que quelqu'un a un script qui permet d'imprimer une dw en utilisant les fonctions Print (PrintOpen et PrintSetUp par exemple) ?
Dernière modification par bdf94 (13-08-2009 17:10:11)
Hors ligne














Bonjour, l'aide PB est ton amie :
F1 a écrit:
These statements send the contents of three DataWindow controls to the current printer in a single print job:
Code: pb
long job job = PrintOpen( ) // Each DataWindow starts printing on a new page. PrintDataWindow(job, dw_EmpHeader) PrintDataWindow(job, dw_EmpDetail) PrintDataWindow(job, dw_EmpDptSum) PrintClose(job)
These statements call the Printer Setup dialog box for the current system printer and then start a new print job:Code: pb
long Job // Call the printer setup program. PrintSetup() // Start a job and a new page. Job = PrintOpen()
Hors ligne




Merci beaucoup.
En revanche, j'ai une image dans ma dw qui est inclus dans le fichier image pbr.
Quand je fais un dw_1.print(), l'image resort bien. Par contre, en utilisant le job, l'image ne resort pas.
Avez-vous une solution ?
Hors ligne