Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Convert Word Doc or PDF file to VFP FRX report

Posted on 2014-01-20
9
Medium Priority
?
2,256 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 43

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 30

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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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 30

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 30

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Take a look at these 6 Outlook Email management tools which can augment the working and performance of Microsoft Outlook to give you a more rewarding emailing experience.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

971 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