• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2513
  • Last Modified:

Convert Word Doc or PDF file to VFP FRX report

Hi:
Does anyone know of a way to convert an exsting MS-Word Doc or PDF document into a VFP-9 FRX file? Need to create a FRX that has a lot of lines / boxes / fonts / text. I have the "report" in Word and PDF format. Any ideas?
Thanks.
Cathie
0
ramramcat
Asked:
ramramcat
1 Solution
 
Daniel JungesCommented:
We do it with Openoffice, is easy and free.
Is the best free converter

regards
Junges
0
 
pcelbaCommented:
As I know no such convertor exists and manual work is the only option.  

If you have many similar Word/PDF documents then it should be possible to write some tool which could help to convert them. But it will not be trivial task. Also remember the fact some PDF formats are not easily readable.
0
 
Olaf DoschkeSoftware DeveloperCommented:
junges, OpenOffice may convert DOCX to open office formats. And FRX may be an open office format, but here it's a FoxPro report, which is something generating a document, as a crystal report.

That said, it's a strange need, to convert a document to a report, even if the document has input fields, the destination would rather be a form with input controls.

If you have mail merge word documents, bulk letter or such, that would be something redoable as FRX but why would you go towards VFP? Word has more formatting possibilities.

ramramcat, what DOC or PDFs are you really dealing with, here? And what do you really need to achieve? If you have PDF forms you need to autofill, you won't do that with an FRX at all, you would need an automatable PDF Writer (eg Amyuni) and feed it with data, generating all needed PDFs automatically in a bulk.

Bye, Olaf.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
ramramcatprogrammerAuthor Commented:
As it turns out, the simplest way to get what I needed was to embed the word document into my FRX using OLEBoundControl from a table with a general field containing the document.
When the OLEBoundControl is sent-to-back, data fields from tables can be overlayed on top, "filling in the boxes".
Thanks.
Cathie
0
 
Olaf DoschkeSoftware DeveloperCommented:
If that's sufficient to you, ok.

I'd rather fill these gaps by word automation to get a better overall formatting with inserted data. What type of "boxes" are there? Is it really just a form with underlined gaps, or a form like a tax declaration?

You can do that much better and then also send the filled in word doc by mail. Now you could only print a pdf having the word part as a background graphic and filled in data, this will get much larger than needed.

I won't object, but I'd look for a better solution, if I were you.

Bye, Olaf.
0
 
ramramcatprogrammerAuthor Commented:
Hi Olaf,
If I were to use word automation and fill in the word document, is it possible to save each "completed" document as a PDF rather than actually printing it? Also, this app would be running from a server using some PCs with Win-XP and some with Win-7, and various versions of MS-Office.
Thanks.
Cathie
0
 
Olaf DoschkeSoftware DeveloperCommented:
You would run this on one PC with Office 2007 or higher and be able to save as PDF, then. You are always able to print as PDF with a PDF printer driver like Bullzip.

If it would need to run on a server, that server would need an office installation. If only data is on that server, that won't matter, you would automate the local office at the client running the batch of PDF generations.

The question is, what's really in the docs, simple gaps as spaces or underlines, or Office Form controls? Anchors? Text marks? There are very many different ways to visually have forms in word. If there is nothing yet, you could address programmatically, you could add it yourself, it's just a one time effort, unless forms are changing very often. But then you'd need to adjust your FRX often, too.

Bye, Olaf.
0
 
ramramcatprogrammerAuthor Commented:
There are gaps on the word document where data would go, and it is not a document that would be updated frequently.  At this point, I have no control over my client's workstations or server, so I think that embedding the word document in an FRS would make my app independent of their environment.
Thanks.
Cathie
0
 
ramramcatprogrammerAuthor Commented:
As it turns out, the simplest way to get what I needed was to embed the word document into my FRX using OLEBoundControl from a table with a general field containing the document.
When the OLEBoundControl is sent-to-back, data fields from tables can be overlayed on top, "filling in the boxes".
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now