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!

How to Export VFP Report Form output to MS Excel Format

Status
Not open for further replies.

1010ash1957

Programmer
Jan 25, 2007
22
HK
Hi
We have an application written VFP 6.0 and would like to add function or addon which can convert VFP Report forms output to MS Excel format.

Please advise.

Thanks
 
Alternatively, you could by-pass going to the VFP Report Form at all and merely output your data to Excel directly by using either:

COPY TO <XLSFile> XL5 && which is somewhat 'raw' but functional
OR
Use Excel Automation where you can get Excel to do almost anything you want (select fonts, insert calculations, format cells, change cell backgrounds, borders, etc.). Somewhat tedious at first to develop, but it works well.

Good Luck,
JRB-Bldr
 
JRB-Bldr made a good point.

Often, when a client asks me to export a report to Excel, it turns out that what they really want is just the underlying data -- the body of the report -- in Excel. They don't want the report title, page headings, page numbers, etc. to be exported.

In those cases, using COPY TO is the best solution.

But, 1010ash1957, if you want to preserve the headings, page layout, formatting, etc of the report, then go with one of my original suggestions.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top