Thank you guys
I just scanned the empty form and embedded it in a VFP report
Then, by painstaking trial and error I managed to make the report textboxes coincide with the right place on the form.
I printed it and it looks well enough
The textboxes have to be set as "bring to front" and the scanned image have to cover the header, details and footer areas of the report.
It also has to be a JPG image. The VFP control will not accept a PDF file, unless I am missing something very obvious
Thanks again for your suggestions
Rafael
El vie., 14 sept. 2018 a las 14:15, Frank Cazabon (frank.cazabon@gmail.com) escribió:
Koen,
it's not me asking for help, it's Rafael. I suggested PDFtk as I use it in some systems. Dead simple to implement, maybe 30 minutes tops if you program slowly.
Frank.
Frank Cazabon
On 14/09/2018 12:57 PM, Koen Piller wrote:
Frank,
Ted is completely correct. Just use VFP:
- scan your given PDF form and extract the different images from that
file into separate .jpg files 2) create a dbf/cursor with all the fields you are required to fill in
the
given PDF 3) search internet for the font used for that PDF 4) create a VFP Report, where you put the images you have colleted at
their
place like on the given PDF 5) set all the captions as on the given PDF to the text as in the font as 6) set all the textboxes font as on the given PDF 7) save report, print and compare A job which can be done in less than 1 hour. (maybe 1st time a little
bit
longer, however when you know how-to certainly < 1 hour) If you find problems with this approach, feel free to contact me.
Koen
Op vr 14 sep. 2018 om 17:10 schreef Frank Cazabon <
frank.cazabon@gmail.com>:
If you can get the PDF as a fillable PDF form you can then use PDFtk to fill the form from VFP.
Frank.
Frank Cazabon
On 14/09/2018 10:53 AM, Rafael Copquin wrote:
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image. I want to fill it with the applicable data and then print it on a laser printer
I can't use the vfp report writer because it will not take a pdf file
as
an
image. And if I use a jpg file instead, it will not allow me to make it
fit
in the page with the right shape.
Rafael
El vie., 14 sept. 2018 a las 6:01, Alan Bourke (<
alanpbourke@fastmail.fm
) escribió:
Maybe I'm missing something but would you not just design a normal VFP report with the logo graphic and whatever boxes and lines are
required,
reproducing the pre-printed stationery, and print that to PDF via XFRX
or
whatever?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]