Tema: FoxitReader
Ver Mensaje Individual
  #12
Antiguo 14 de septiembre de 2017, 00:08
Rapinto
Gran amigo del Foro
Guru de COBOL
Activista del Foro: Activista del Foro - Issue reason: ¡Gracias! Agradecimientos: Por muchos agradecimientos de parte de los Foreros - Issue reason: Por ayudar mucho a los foreros Guru de los Gurus: Por solidos y amplios conocimientos - Issue reason: Por saber demasiado! 
Última Actividad 29.01.2018 20:23
Posts Posts: 240
Likes enviados Enviados: 19
Likes recibidos Recibidos: 224

Joseg,
Utilizei durante algum tempo o OCX "axpdfvw.ocx" da Sky Sof.
Permitia ver o pdf e imprimir, etc.

Não sei se ainda andará por aí.
Se não encontrar diga-me que eu envio.
Um abraço,
Rui Pinto

---------- Post añadido : 23:08 ---------- Post anterior : 19:44 ----------

Joseg,

Encontrei a o código para usar o OCX do Post anterior.
Código COBOL:
  1.  ENVIRONMENT     DIVISION.
  2.  DATA            DIVISION.
  3.  WORKING-STORAGE SECTION.
  4.  01  STARTPAGE            PIC S9(009)     COMP-5    VALUE 1.
  5.  01  ENDPAGE              PIC S9(009)     COMP-5    VALUE 0.
  6.  01  PAGESCALING          PIC S9(009)     COMP-5    VALUE 0.
  7.  01  AUTOROTATE           PIC S9(009)     COMP-5    VALUE 0.
  8.  01  STRTITLE             PIC X(128)      VALUE "PDF".
  9.  01  STRPRINTER           PIC X(256).
  10.  01  RETURNVALUE          PIC S9(009)     COMP-5.
  11.  PROCEDURE       DIVISION.
  12.     MOVE "Text" OF CMDAPAG TO STARTPAGE.
  13.     MOVE "Text" OF CMAPAG  TO ENDPAGE.
  14.     INVOKE CMPRINT1 "SetPrinter" RETURNING ReturnValue.
  15.     MOVE "PrinterName" OF CMPRINT1 TO STRPRINTER.
  16.      INVOKE PDFVIEWER1 "PrintPDF" USING strPrinter StartPage EndPage PageScaling AutoRotate strTitle RETURNING ReturnValue.

Não sei se ajuda.
Um abraço,
Rui Pinto
Rapinto is offline   Responder Con Cita