PdfPrinter lib - How to use it / Como usar

57 views
Skip to first unread message

Marcelo Antonio Lázzaro Carli

unread,
Sep 11, 2025, 3:40:12 PM (2 days ago) Sep 11
to Harbour Minigui, Harbour Users

Good afternoon, in the C:\MiniGUI\Harbour\lib folder, there's the PdfPrinter lib. Does this lib work for printing PDFs directly to the default printer? If so, do you have any usage examples? Thank you.

 

 

 

 

Boa tarde na pasta C:\MiniGUI\Harbour\lib tem a lib PdfPrinter. Por acaso essa lib serve para imprimir pdf diretamente para a impressora padrão? Caso afirmativo tem algum exemplo de uso da mesma? Obrigado

 

 

 

 

Att.

 

                Marcelo A. L. Carli

                      Marília/SP

         Capital Nacional do Alimento ®

      https://malc-informatica.ueniweb.com

                 Insta: @malcarli25

      Email / Skype: marcelo...@gmail.com

 

******************************************************************************

Se for repassar, apague o meu nome e endereço.

Ajude a combater a propagação de vírus e spams

coloque TODOS os destinatários em CÓPIA OCULTA (Cco / Bcc)

******************************************************************************

 

 


Não contém vírus.www.avast.com

Marcos Jarrin

unread,
Sep 11, 2025, 4:18:17 PM (2 days ago) Sep 11
to Harbour Minigui
Hello

Example path to using the library

C:\MiniGUI\SAMPLES\Advanced\PDF_PRINT

Best regards

Marcos

Marcelo Antonio Lázzaro Carli

unread,
Sep 12, 2025, 9:48:46 AM (17 hours ago) Sep 12
to Marcos Jarrin, Harbour Minigui

Good morning, I don't want to generate a PDF, but rather print directly through Harbor without depending on Adobe, for example.

 

 

Bom dia, eu não quero gerar um pdf, mas sim imprimir diretamente pelo harbour sem depender do adobe, por exemplo

--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/minigui-forum/3fa4b561-4c77-4e25-b2af-41decf709ae1n%40googlegroups.com.


Não contém vírus.www.avast.com

Marcos Jarrin

unread,
Sep 12, 2025, 10:08:34 AM (16 hours ago) Sep 12
to Harbour Minigui
Hello

There are many examples of how to generate a report and send it directly to the printer.

C:\MiniGUI\SAMPLES\BASIC\Print_Test
C:\MiniGUI\SAMPLES\Advanced\REPORT_GENERATOR
C:\MiniGUI\SAMPLES\Advanced\REPORT_INTERPRETER

Regards

Marcos

l...@rota66.net

unread,
Sep 12, 2025, 10:18:06 AM (16 hours ago) Sep 12
to Harbour Minigui
Try this:
TENTE assim:

SHELLEXECUTE( 0, "PRINT",  "\DIRETORIO\ARQUIVO.PDF"  )

O sistema operacional vai imprimir direto pra impressora padrão

Marcelo Antonio Lázzaro Carli

unread,
Sep 12, 2025, 10:41:54 AM (16 hours ago) Sep 12
to l...@rota66.net, Harbour Minigui

Não funcionou

 

De: minigu...@googlegroups.com [mailto:minigu...@googlegroups.com] Em nome de l...@rota66.net
Enviada em: sexta-feira, 12 de setembro de 2025 11:18
Para: Harbour Minigui <minigu...@googlegroups.com>
Assunto: [harbourminigui] Re: PdfPrinter lib - How to use it / Como usar

 

Try this:
TENTE assim:

--

Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.

Marcelo Antonio Lázzaro Carli

unread,
Sep 12, 2025, 10:45:57 AM (16 hours ago) Sep 12
to Marcos Jarrin, Harbour Minigui

Não é o que preciso, mas obg

Marcos Jarrin

unread,
Sep 12, 2025, 11:26:03 AM (15 hours ago) Sep 12
to Harbour Minigui

You can send an example of what you need, code.

Marcelo Antonio Lázzaro Carli

unread,
Sep 12, 2025, 12:26:34 PM (14 hours ago) Sep 12
to Marcos Jarrin, Harbour Minigui

      WAPI_ShellExecute(0, [PRINTTO], cFilePdf, ["] + cPrinter + ["], 0, 0)

 

This command directly prints any PDF file to a preselected printer. However, this command requires Acrobat to be installed to work. What I need is for it to print a PDF file, without relying on Acrobat or any other application, but simply using Harbor/MiniGui functions.

 

 

 

Este comando imprime diretamente qualquer arquivo pdf  em uma impressora pré-selecionada. Mas este comando depende do acrobat estar instalado para funcionar. O que preciso é que imprima um arquivo pdf, sem depender do acrobat ou qualquer outro aplicativa, mas usando simplesmente funções do harbour/minigui.

Reply all
Reply to author
Forward
0 new messages