Solved

Convert Word Doc or PDF file to VFP FRX report

Posted on 2014-01-20
9
1,776 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 41

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
 

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Import CSV Files 5 1,036
FORM caption height 4 181
break table into files vfp 2 82
FoxPro comparing columns 2 24
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…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now