dbTalk Databases Forums  

Document Viewer

comp.databases.ms-access comp.databases.ms-access


Discuss Document Viewer in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave G @ K2
 
Posts: n/a

Default Document Viewer - 11-12-2010 , 05:33 AM






Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets

Reply With Quote
  #2  
Old   
Arvin Meyer
 
Posts: n/a

Default Re: Document Viewer - 11-12-2010 , 11:35 AM






Try protecting the document. Then unprotect it for your "good" users:

' If document is protected, Unprotect it.
If .ActiveDocument.ProtectionType <> wdNoProtection Then
.ActiveDocument.Unprotect Password:=""
End If

In the close event when the good guys are done, use:

' ReProtect the document.
If .ActiveDocument.ProtectionType = wdNoProtection Then
.ActiveDocument.ProtectType:=wdAllowOnlyFormFields , NoReset:=True
End If

Change: wdAllowOnlyFormFields to whatever type you wish.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
Co-author: "Access Solutions", published by Wiley
"Dave G @ K2" <davegriffiths70 (AT) gmail (DOT) com> wrote

Quote:
Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets

Reply With Quote
  #3  
Old   
Jim Devenish
 
Posts: n/a

Default Re: Document Viewer - 11-13-2010 , 09:34 AM



On Nov 12, 11:33*am, "Dave G @ K2" <davegriffith... (AT) gmail (DOT) com> wrote:
Quote:
Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets
You could convert the documents to pdf form. Then they could not edit
them.

Reply With Quote
  #4  
Old   
Dave G @ K2
 
Posts: n/a

Default Re: Document Viewer - 11-15-2010 , 06:05 AM



On Nov 12, 5:35*pm, "Arvin Meyer" <arv... (AT) invalid (DOT) org> wrote:
Quote:
Try protecting the document. Then unprotect it for your "good" users:

* * * * * *' If document is protected, Unprotect it.
* * * * If .ActiveDocument.ProtectionType <> wdNoProtection Then
* * * * * *.ActiveDocument.Unprotect Password:=""
* * * * End If

In the close event when the good guys are done, use:

* * * * * *' ReProtect the document.
* * * * If .ActiveDocument.ProtectionType = wdNoProtection Then
* * * * * *.ActiveDocument.ProtectType:=wdAllowOnlyFormField s, NoReset:=True
* * * * End If

Change: wdAllowOnlyFormFields to whatever type you wish.
--
Arvin Meyer, MCP, MVPhttp://www.datastrat.comhttp://www.accessmvp.comhttp://www.mvps.org/access
Co-author: "Access Solutions", published by Wiley
"Dave G @ K2" <davegriffith... (AT) gmail (DOT) com> wrote in messagenews:56c2853f-285a-40b6-9539-4844cecdf7da (AT) w18g2000vbe (DOT) googlegroups.com...

Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets
Thanks Arvin

But am I right in thinking that this would not prevent a 'bad' user
from doing File -> Open in Word and accessing any other file - because
I must prevent this

Reply With Quote
  #5  
Old   
Dave G @ K2
 
Posts: n/a

Default Re: Document Viewer - 11-15-2010 , 06:07 AM



On Nov 13, 3:34*pm, Jim Devenish <internet.shopp... (AT) foobox (DOT) com> wrote:
Quote:
On Nov 12, 11:33*am, "Dave G @ K2" <davegriffith... (AT) gmail (DOT) com> wrote:



Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets

You could convert the documents to pdf form. *Then they could not edit
them.
Thanks for this. I like this idea as I could convert a document on the
fly for 'bad' users. But do you know there are PDF readers that don't
give users access to the filesystem eg File -> Open as this is crucial?

Reply With Quote
  #6  
Old   
paii, ron
 
Posts: n/a

Default Re: Document Viewer - 11-15-2010 , 07:23 AM



Why not setup your server to give only read access to the locations you want
to hide?

"Dave G @ K2" <davegriffiths70 (AT) gmail (DOT) com> wrote

Quote:
Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets

Reply With Quote
  #7  
Old   
Dave G @ K2
 
Posts: n/a

Default Re: Document Viewer - 11-16-2010 , 07:45 AM



On Nov 15, 1:23*pm, "paii, ron" <n... (AT) not (DOT) com> wrote:
Quote:
Why not setup your server to give only read access to the locations you want
to hide?

"Dave G @ K2" <davegriffith... (AT) gmail (DOT) com> wrote in messagenews:56c2853f-285a-40b6-9539-4844cecdf7da (AT) w18g2000vbe (DOT) googlegroups.com...

Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets
Thanks for replay, but that would be horribly complicated especially
as some users can have full access while others can not.

All I want is some kind of document viewer that just pops up
displaying the document required and has a close button - nothing
else. Why is that so hard ?????

Reply With Quote
  #8  
Old   
paii, ron
 
Posts: n/a

Default Re: Document Viewer - 11-16-2010 , 08:20 AM



"Dave G @ K2" <davegriffiths70 (AT) gmail (DOT) com> wrote

Quote:
On Nov 15, 1:23 pm, "paii, ron" <n... (AT) not (DOT) com> wrote:
Why not setup your server to give only read access to the locations you
want
to hide?

"Dave G @ K2" <davegriffith... (AT) gmail (DOT) com> wrote in
messagenews:56c2853f-285a-40b6-9539-4844cecdf7da (AT) w18g2000vbe (DOT) googlegroups.com...

Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets

Thanks for replay, but that would be horribly complicated especially
as some users can have full access while others can not.

All I want is some kind of document viewer that just pops up
displaying the document required and has a close button - nothing
else. Why is that so hard ?????
Why would it be hard? Setup 2 groups on the server, give one group full
access, the other read only.

Unless you control it though the OS, the un-trusted users will have access
to the files outside of Access if they have access within Access.

The only other way I can think of is to import the document into a Blob
field in Access and make the form read only to some users. You understand
that if security from un-trusted users is a concern, then a Jet BE may not
be the best choice.

Reply With Quote
  #9  
Old   
Jon Lewis
 
Posts: n/a

Default Re: Document Viewer - 11-17-2010 , 06:49 AM



Have you tried the standard Access Unbound Object Frame?

I've not used it myself but it sounds as though it would work as you want.

There seems to be plenty of Googleable code for it around.

HTH

Jon

"Dave G @ K2" <davegriffiths70 (AT) gmail (DOT) com> wrote

Quote:
Have written a system in Access 2003 that uses automation to open Word
and display a document. No prob - works fine.

But for some users I want to restrict them to view only with no way to
edit documents and definitely no access to the file system. There are
some people I just don't want poking around!!

I've tried, but failed, to find a way to do this. I've looked into
opening Word but with most menu items disabled but couldn't get it to
work. I wondered about some kind of viewer but the ones I looked at
still had functions I don't want to appear. And I don't mind spending
money on something commercial if that's the only way to solve this.
All I really need is a document viewer with no menu items except
'Exit'.

Can anyone help please?

Thanks a lot
Dave

ps will eventually need to do the same for excel spreadsheets

Reply With Quote
  #10  
Old   
Dave G @ K2
 
Posts: n/a

Default Re: Document Viewer - 11-23-2010 , 08:53 AM



Quote:
Have you tried the standard Access Unbound Object Frame?
I've not used it myself but it sounds as though it would work as you want.
There seems to be plenty of Googleable code for it around.
Yes I did, but when the document is visible you can right click over
it which brings up a sub-menu with a way of opening up the doc in
Word. I couldn't find a way of preventing the sub-menu

Dave

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.