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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export cursor to pptx without automation

Status
Not open for further replies.

vgulielmus

Programmer
Jan 27, 2014
522
RO
I have posted in faq184-7746 a procedure to generate a pptx file, without automation.

Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
 
A superb piece of code, Vilhelm-Ion. Well done. I assume you had some reason to write it. You surely didn't do it just for the fun of creating a Tek-Tips FAQ?

A couple of very minor quibbles:

- I ran it on a system that has an old version of PoewrPoint installed (one that does not support pptx). The file was successfully created, but your program failed with an error message when you tried to open the file (the ShellExecute() call). I removed that line, and it was fine. I wondered about error-trapping the line, but the error presumably comes from PowerPoint, not VFP, so TRY/CATCH/ENDTRY wouldn't help.

- My preference would be to create the working directory in %TEMP% rather than the current directory.

But these are really minor points, and don't detract from the overall usefulness of the code.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
I only wish such long codes could be attached to a FAQ as zip and permanently be available.
Otherwise it reminds me hof VFPX foxypreviewer creates xlsx without using automation. Yes, it's not very complicated to put together xml files, in the end it's just text and you just need to know the xml tags and structure. It's just very cumbersome and requires diligence.

All the more so it is welcome, if you ever want to putout pptx from vfp data.

Bye, Olaf.
 
Good sugestione, thank you.
Indeed, it's not very complicated.
The first version took me only several hours. But after I get experience by creating similar procedures for xlsx and docx.
And the great Microsoft documentation was very useful.

Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
 
I only needed xlsx and docx.
In reply to posting, on Foxite, a similar procedure for generating docx, Mr. Cesar Chalom asked me to provide a solution to generate pptx.
Because I am very indebted to him (I use his code, and I also learned so much from him), I was feeling obliged to create such procedure.
The structure and the experience I already had, from the procedure for xlsx, and it was also fun :)

Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top