Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I print to x, y coords on a picture?

Status
Not open for further replies.

dsandlin

Programmer
Jul 11, 2003
56
CR
I need to take values from FoxPro tables, print them to certain X, Y locations on a bitmap of a tax form, and put the whole thing out to a PDF. Can this be done in FoxPro?

I am replacing a VB program that does it using a Printer object.


Regards, Dick
 
VFP does not make it easy to create/modify bitmap images.

I'm sorry to point to a "members only" resource (I don't have access either).. but some good info is available w/o membership here:
Basically, what I get from it is: You can use the VFP LoadPicture() function to get a good Bitmap handle, which you can then pass to Win32 functions to draw on the bitmap.

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
dsandlin

You could create a report using the tax form bitmap as the background of the report and position your fields relative to the tax form bitmap.

Then print the report to a postscript file and output the postcript file to a PDF.

If you need more help on this, please start a new thread in the Microsoft: VFP - Databases, SQL&VFP, and Reports forum.

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommandertm.com
PDFcommandertm.co.uk


 
Could this be done through word/excel automation?

Open an Excel spreadsheet, paste the bitmap, output the text
using relative coordinates as little text frames, and then print the sheet?

Not tried it myself, but it might work!


Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top