Solved

Convert Word Doc or PDF file to VFP FRX report

Posted on 2014-01-20
9
1,916 Views
Last Modified: 2014-01-29
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
Comment
Question by:ramramcat
9 Comments
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 39793570
We do it with Openoffice, is easy and free.
Is the best free converter

regards
Junges
0
 
LVL 42

Expert Comment

by:pcelba
ID: 39793625
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
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 39805745
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
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Accepted Solution

by:
ramramcat earned 0 total points
ID: 39808260
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
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 39808269
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
 

Author Comment

by:ramramcat
ID: 39809365
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
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 39809737
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
 

Author Comment

by:ramramcat
ID: 39814126
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
 

Author Closing Comment

by:ramramcat
ID: 39817308
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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question