Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

View Doc or Docx files in a vfp form

Posted on 2016-09-23
4
Medium Priority
?
168 Views
Last Modified: 2016-10-04
Is there a way to see the entire contents of a word file (doc or docx) inside a visual foxpro form?
0
Comment
Question by:Peter H.
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 18

Assisted Solution

by:xtermie
xtermie earned 2000 total points
ID: 41813615
0
 

Author Comment

by:Peter H.
ID: 41816249
The other solution would be to convert DOC files to a pdf.  I have a client that still uses word 2003 and has a number of files in that format.  If they had word 2007 I could use automation to save the document as a pdf and view it that way without issue.  As for your link xtermie it points me to an activex solution that costs 1000s,
0
 

Accepted Solution

by:
Peter H. earned 0 total points
ID: 41822047
What I ended up doing is using my client's word 2003 (ugh) to convert to DOCX but the enumerations were different then the current word version (2007 and above) and used saveas with filetype 13 to save as docx.  From there, I wrote myself a conversion from docx to pdf using some telerik libraries and called those libraries using wwDotNetBridge ( http://west-wind.com/wwdotnetbridge.aspx ) so I wouldn't have to register the DLLs.
From there I used an "Shell.Explorer.2" olecontrol on my VFP form to display the pdf document.  Works like a charm but the client needs a pdf viewer (tried adobe and foxit which worked perfectly) and one pdf viewer needs to be set as a default otherwise you get an annoying "set it as default" message.
Using 3rd part tools was way too expensive.
0
 

Author Closing Comment

by:Peter H.
ID: 41827732
Solved the problem
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

718 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