Compañeros del foro
Tengo la siguiente pregunta, se ha desarrollado reportes en Crystal Reports y
se los ha publicado en un WAS en el AS400, todo funciona correctamente si los
reportes se los presenta en pantalla, pero al querer imprimir directamente a
una impresora del servidor, no funciona. Se está usando el siguiente código:
/**
* Prints to the server printer
*
* @param clientDoc The reportClientDocument representing the
report being used
* @param printerName Name of printer used to print the report
* @throws ReportSDKPrinterException
*/
public static void printToServer(ReportClientDocument clientDoc,String
printerName)throws ReportSDKPrinterException{
PrintReportOptions printOptions = new PrintReportOptions();
// Note: Printer with the <printer name> below must already be
// configured.
printOptions.setPrinterName(printerName);
printOptions.setJobTitle("Print Job.");
printOptions.setPrinterDuplex(PrinterDuplex.useDefault);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperA4);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
// Print report
clientDoc.getPrintOutputController().printReport(printOptions);
}
Alguien sabe como imprimir un reporte de Crystal reports directamente en una
impresora del as400?
Desde ya muchas gracias
Saludos
Paola Vallejos M.
Tecnología - Desarrollo y Mantenimiento
Diners Club - Interdin
*(593) 2 2981300 ext 4321
email: [email protected]<mailto:[email protected]>
________________________________
Nota de descargo: La información contenida en este e - mail y sus anexos es
confidencial y sólo puede ser utilizada por el destinatario del mismo. Esta
información no debe ser distribuida, ni copiada total o parcialmente por ningún
medio sin la autorización de DINERS/INTERDIN. Además, DINERS/INTERDIN no asume
responsabilidad sobre información, opiniones o criterios contenidos en este
e-mail.
Disclaimer: The information contained in this e-mail and its attached files are
confidential and intended only for the use of the person to which it is
addressed. This information can not be totally or partially distributed nor
copied by any media without the authorization from DINERS/INTERDIN. In
addition, DINERS/INTERDIN does not assume responsibility about this
information, opinions or criteria contented in this e-mail.
__________________________________________________
Forum.HELP400 es un servicio m&#225;s de ServerNEWS.
&#169; Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________
Para darte de baja visita la siguente URL:
http://listas.combios.es/mailman/listinfo/forum.help400