Re: Veiwing a readonly word document
- From: "Mike Gagnon" <mgagnon23@xxxxxxxxxxx>
- Date: Fri, 9 Sep 2005 16:50:10 -0400
>>> A pdf takes too long to load IMHO.
Use ShellExecute it is much faster,
"John Andres" <JohnAndres@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ED37755F-C8FB-48E1-ADD6-F5B04230D383@xxxxxxxxxxxxxxxx
> Man I hate to complain when I'm asking for help, and the above advice is
> all
> true (opening it read only and/or setting the file attribute) but you can
> still edit the crap out of the document and print it. You just cant save
> (overwrite) it. Since I'm dealing with a 3 page contract, where I insert
> names/amounts, I don't want someone changing the fine print in the ninth
> paragraph, printing it, etc. So I want a viewer, the problem with the
> report
> writer is that the customer cant change his contract at his will without
> using vfp. A pdf takes too long to load IMHO.
>
> Thanks to all
>
>
>
> "PM Godfrey" wrote:
>
>> Also, you could try using the Windows API functions via VFP (again
>> with appropriate admin rights).
>>
>> Visit <http://www.news2news.com/vfp/?group=27&function=151>
>> and
>> <http://www.news2news.com/vfp/?example=103&function=151>
>> for more info on SetFileAttribute API function using VFP.
>>
>>
>>
>>
>> On Fri, 09 Sep 2005 12:07:57 -0400, PM Godfrey
>> <pNOmSPAMg@xxxxxxxxxxxxxxx> wrote:
>>
>> >Prior to opening the document via WORD, try setting the DOC file's
>> >actual ReadOnly attribute (if you have the admin rights to do so)
>> >through:
>> >
>> > 1) Windows Explorer (manually)
>> >
>> > 2) Windows Command prompt (could write a scipt or batch file to do
>> >multiple files)
>> >
>> > 3) VFP's RUN command (e.g., RUN ATTRIB +R <myfile.doc>
>> >
>> >
>> >by using (calling) Window's ATTRIB command which:
>> >
>> >Displays or changes file attributes.
>> >
>> >ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H]
>> >[drive:][path][filename] [/S [/D]]
>> >
>> > + Sets an attribute.
>> > - Clears an attribute.
>> > R Read-only file attribute.
>> > A Archive file attribute.
>> > S System file attribute.
>> > H Hidden file attribute.
>> > [drive:][path][filename]
>> > Specifies a file or files for attrib to process.
>> > /S Processes matching files in the current folder
>> > and all subfolders.
>> > /D Processes folders as well.
>> >
>> >
>> >On Wed, 7 Sep 2005 13:21:04 -0700, "John Andres" <John
>> >Andres@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> >
>> >>Using word automation:
>> >>
>> >> set OleObject ON
>> >> lcWordDoc=sys(5)+sys(2003)+'\'+MyDoc.rtf
>> >> oWord=createobject('Word.Application')
>> >> oWord.visible=.t.
>> >> oDoc=oWord.documents.open(lcWordDoc)
>> >> oWord.PrintPreview
>> >>
>> >>How do I make the doc readonly? I want to preview it but not allow
>> >>editing.
>> >>Thanks in advance
>>
>>
.
- References:
- Veiwing a readonly word document
- From: John Andres
- Re: Veiwing a readonly word document
- From: PM Godfrey
- Re: Veiwing a readonly word document
- From: PM Godfrey
- Re: Veiwing a readonly word document
- From: John Andres
- Veiwing a readonly word document
- Prev by Date: Re: Veiwing a readonly word document
- Next by Date: DBF File DELETED when PACK!?
- Previous by thread: Re: Veiwing a readonly word document
- Next by thread: Convert dbase for dos version 5 reports
- Index(es):
Relevant Pages
|