loislane21
Messages postés65Date d'inscriptionjeudi 10 mars 2005StatutMembreDernière intervention28 mars 2006
-
20 mars 2006 à 11:23
loislane21
Messages postés65Date d'inscriptionjeudi 10 mars 2005StatutMembreDernière intervention28 mars 2006
-
21 mars 2006 à 15:58
Bonjour,
J'aimerais savoir comment faut-il faire pour imprimer un état crystal reports sans l'afficher?
J'ai passé les paramètres mais je bloque sur l'impression (surtout que j'ai plusieurs imprimantes).
Merci de votre aide.
Goth25
Messages postés75Date d'inscriptionsamedi 26 juillet 2003StatutMembreDernière intervention21 mai 2014 20 mars 2006 à 21:41
Salut, j'ai trouver ca sur un forum anglais. Cela peut peut etre t'aider.
'Bring up CR Printer Setup dialog
Report.PrinterSetup lHwnd
gsOrientation = Report.PaperOrientation 'Save orientation into var
Printer.Orientation = Report.PaperOrientation
Report.SelectPrinter Report.DriverName, Report.PrinterName, Report.PortName
gsPrinterName = Report.PrinterName 'Save other settings to vars
gsPrinterDriver = Report.DriverName '...
gsPortName = Report.PortName '...
'...
'Set the report source (if using already opened ADO recordset).
'Report.Database.SetDataSource oRs, 3, 1
'...
'Then you can set the report to whatever the user selected and print out.
Report.DisplayProgressDialog = True
Report.SelectPrinter gsPrinterDriver, gsPrinterName, gsPortName
Report.PaperOrientation = gsOrientation
Report.PrintOut True, 1