Forum
Keyword

Report printing to PDF from browser

  • Valleyman1
  • Valleyman1's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 256
  • Karma: -1
  • Thank you received: 16

Valleyman1 created the topic: Report printing to PDF from browser

Hello,

I need to print ENQUIRY output to a pdf from the browser.Did any of you have ideas how to achieve this?

Regards,
#21312

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 441
  • Karma: 7
  • Thank you received: 58

VK replied the topic: Report printing to PDF from browser

Hi
to my knowledge there's no PDF export in T24 out of the box;
when we needed that we used an external program to create PDF from a text and attached it to COMMAND field of PRINTER.ID application.

Cheers
VK
#21314

Please Log in or Create an account to join the conversation.

  • Valleyman1
  • Valleyman1's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 256
  • Karma: -1
  • Thank you received: 16

Valleyman1 replied the topic: Report printing to PDF from browser

Hi VK,

Can you provide a sample of the program?

regards
#21315

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 441
  • Karma: 7
  • Thank you received: 58

VK replied the topic: Report printing to PDF from browser

Hi

for the jBC program all is easy - create a PRINTER.ID like this:
 TEST-R13    PRINTER FILE MAINTENANCE INPUT

     PRINTER.NAME...... SAVE.TO.PDF
 ------------------------------------------------------------------------------
   1 PRIME.PRINTER.ID.. HOLD
   2 DESCRIPTION....... Saving output
   3 PRINTER.TYPE......
   4. 1. 1 COMMAND..... SAVE.PDF &HOLD.CONTROL>@ID&
   5 RESERVE1..........
   6 RESERVE2..........
   7 RESERVE3..........
   8 RESERVE4..........
   9 RESERVE5..........

The your program SAVE.PDF has to get the file from &HOLD&:

hold_id = SENTENCE(1)

... and call an external program to create a pdf. I believe there's a lot of such command-line tools that you can use.

For example, to create a pdf from ENQUIRY output you have to point the ENQUIRY.REPORT to this printer (using special REPORT.CONTROL).

Cheers
VK
#21317

Please Log in or Create an account to join the conversation.

Time to create page: 0.117 seconds