FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is it possible to use pdf as a report template?
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Is it possible to use pdf as a report template?
Posted: Wed Jun 30, 2010 10:03 AM

It's something that just crossed my mind. Is it possible to load a pdf, use it as a template background and print against it?

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Is it possible to use pdf as a report template?
Posted: Fri Jul 02, 2010 08:03 AM

I see 2 options in tackling this. One is using oPrinter:ImportWmf() while the other one is using Fastreport.

The route that I'm currently taking is trying to use Fastreport by doing this steps:

  1. Use Irfan Viewer to convert the pdf to image file. (Note: you need ghostscript installed to enable Irfan View to display pdf files)

  2. Set the exported image as the background image in Fastreport

  3. Place fields/variables at where it should appear on the 'form'

That's all. Ok, got to go back and resume my attempt :)

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion