Re: Veiwing a readonly word document

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



>>> 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
>>
>>


.



Relevant Pages

  • Re: Graphing in VFP? Help? Example in post...
    ... a capable automation server. ... plethora of PDF tools on the market. ... VFP reaches out into the Windows ... final report that is to be sent to customers. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: PDF editing
    ... want to load on a mobile reader ... Can I just use any ol' PDF ... the means to completing the task isn't as ... I then had to select the mobile preset. ...
    (alt.os.linux)
  • Re: Cutlines im Report
    ... Probier's lieber mal selber aus, bevor du behauptest, dass VFP nur Rastergrafik an den Druckertreiber übergibt... ... Falls Du es nicht glaubst, kann ich Dir jederzeit einen VFP Report zusenden, der mit dem kostenlosen FreePDF XP Druckertreiber und mit GhostScript erstellt wurde. ...
    (microsoft.public.de.fox)
  • Re: PDF-Files erstellen
    ... Meine Anforderung ist glaub nur unwesentlich höher wie bei Walter: ... das PDF soll aus gemischten Statistiken/Dokumenten ... Der ist zum einen als sauberes Objekt direkt ansprechbar, zum> anderen liefern die auch nen Schwung echte VFP Beispiele. ...
    (microsoft.public.de.fox)
  • RE: pdf files
    ... I looked on www.universalthread.com and found no tools to import a PDF ... While I have heard and used products to create a PDF file from VFP, ... >though their visible property is set to false. ...
    (microsoft.public.fox.vfp.dbc)