UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Preview A Word Document In The Web Browser Control, Access 2016    
 
   
appro
post Jun 2 2020, 04:33 PM
Post#1



Posts: 212
Joined: 23-January 05



I'm trying to use the Web Browser control on a form to preview documents. It works great for html and pdf files but docx files only give me the option to open Word itself.

Would it be feasible to convert the docx files to html on the fly for preview in the Web Browser control and if so, how could that be done? Speed would be important because the user would use the function to quickly preview documents before opening the required document in Word.

I've looked at using an unbound object frame to preview docx files but it doesn't seem to work terribly well.
Go to the top of the page
 
isladogs
post Jun 2 2020, 05:21 PM
Post#2


UtterAccess VIP
Posts: 2,390
Joined: 4-June 18
From: Somerset, UK


The attached example app will allow you to view/edit any Word, Excel, PowerPoint, text file or PDF (read only) in an Access web browser control.
For example:

Attached File  Capture.PNG ( 105.94K )Number of downloads: 10





Attached File(s)
Attached File  SampleFileViewer.zip ( 239.72K )Number of downloads: 7
 

--------------------
Colin (Mendip Data Systems)
Website, email
Go to the top of the page
 
appro
post Jun 2 2020, 05:28 PM
Post#3



Posts: 212
Joined: 23-January 05



Thanks for this. Obviously I need to apply the registry patch for it to work. Am I likely to see any side effects from that?

Thinking about it, would this not cause Word documents that are opened from File Explorer to open in a web browser by default rather than the Word app itself?
This post has been edited by appro: Jun 2 2020, 05:36 PM
Go to the top of the page
 
isladogs
post Jun 2 2020, 06:01 PM
Post#4


UtterAccess VIP
Posts: 2,390
Joined: 4-June 18
From: Somerset, UK


The answer to both questions is no.

The registry patch is only needed for Office 2013 or later. There are no side effects

--------------------
Colin (Mendip Data Systems)
Website, email
Go to the top of the page
 
appro
post Jun 2 2020, 06:03 PM
Post#5



Posts: 212
Joined: 23-January 05



Thanks Colin. Much appreciated.
Go to the top of the page
 
ADezii
post Jun 2 2020, 06:40 PM
Post#6



Posts: 3,085
Joined: 4-February 07
From: USA, Florida, Delray Beach


You can actually have an Unbound Object Frame superimposed over a Browser Control. Word Files (*.doc, *.docx) would be loaded into the Unbound Object Frame while all others loaded into a Browser Control. The attached Images depict a *.doc File and a *.jpg loaded into two Controls superimposed over each other. If you want the specifics, I'll show you how it can be done.
Attached File(s)
Attached File  I2.JPG ( 48.01K )Number of downloads: 2
Attached File  I1.JPG ( 58.19K )Number of downloads: 3
 
Go to the top of the page
 
ADezii
post Jun 3 2020, 07:00 AM
Post#7



Posts: 3,085
Joined: 4-February 07
From: USA, Florida, Delray Beach


I forgot to mention that one advantage of the Browser/Unbound Object Frame approach is that if you dbl-click the Word Document within the Unbound Object Frame, Word will Open (Auto Activation) with that Document will be loaded. You can make any changes to it, they will be saved and displayed on the Object Frame.
Go to the top of the page
 
isladogs
post Jun 3 2020, 08:08 AM
Post#8


UtterAccess VIP
Posts: 2,390
Joined: 4-June 18
From: Somerset, UK


@adezii
In your opinion, does that method have any advantages over the approach in my example where you have a 'live' Word document and indeed full Word ribbons in a Web browser control

--------------------
Colin (Mendip Data Systems)
Website, email
Go to the top of the page
 
ADezii
post Jun 3 2020, 08:17 AM
Post#9



Posts: 3,085
Joined: 4-February 07
From: USA, Florida, Delray Beach


QUOTE
does that method have any advantages over the approach in my example where you have a 'live' Word document and indeed full Word ribbons in a Web browser control

None at all, just another approach.
Go to the top of the page
 
isladogs
post Jun 3 2020, 08:38 AM
Post#10


UtterAccess VIP
Posts: 2,390
Joined: 4-June 18
From: Somerset, UK


OK thanks

--------------------
Colin (Mendip Data Systems)
Website, email
Go to the top of the page
 
appro
post Jun 4 2020, 03:05 PM
Post#11



Posts: 212
Joined: 23-January 05



Thanks again.
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    2nd July 2020 - 04:32 AM