🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2139

Re: Inesperto chiede....

#2139
From: KillerBoy
Date: Wed, 15 Oct 2003 09:05
24 lines
2357 bytes
"stgfv" <stgfv@NOSPAM-tiscali.it> ha scritto nel messaggio
news:o4%ib.216840$hE5.7311795@news1.tin.it...
> Forse sono stato poco chiaro,
> ho implementato attraverso il codice :
[CUT]

Ora credo di aver capito.

> Dim WrdApp As Word.Application 'Se Word sul Pc non c'� mi manda in crash
> l'applicazione!!!!!!!!!!

ti manda in crash l'applicazione perch� non la definisci come "new" quindi
cerca word gi� istanziato
potresti definire wrdapp come object (conseguentemente anche wrddoc e campo)
e poi usare la GetObject, con i parametri appropriati, in modo tale che se
non c'� word viene istanzianziato (ed oltretutto se non lo metti tra i
riferimenti il codice diventa conpatibile con le varie versioni di word)

> 'Vorrei ora proteggere il file aperto con una password!!
> 'Come farlo?

la password, se non ricordo male puoi impostarla al momento del salvataggio
del documento, tra i vari parametri gli puoi anche dare le password per
accedere al file
Technical Details
Message-ID: <358jb.36973$vO5.1379953@twister1.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!sjc70.webusenet.com!news.webusenet.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
References: <ZwBib.277259$R32.9038809@news2.tin.it> <sUOib.36322$e6.1287211@twister2.libero.it> <o4%ib.216840$hE5.7311795@news1.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,3c3673a7b24ed666
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-10-15 02:06:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!sjc70.webusenet.com!news.webusenet.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
From: "KillerBoy" <@nospam@@pippo.it>
Newsgroups: free.it.visual-basic
References: <ZwBib.277259$R32.9038809@news2.tin.it> <sUOib.36322$e6.1287211@twister2.libero.it> <o4%ib.216840$hE5.7311795@news1.tin.it>
Subject: Re: Inesperto chiede....
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <358jb.36973$vO5.1379953@twister1.libero.it>
Date: Wed, 15 Oct 2003 09:05:03 GMT
NNTP-Posting-Host: 193.70.27.241
X-Complaints-To: abuse@iunet.it
X-Trace: twister1.libero.it 1066208703 193.70.27.241 (Wed, 15 Oct 2003 11:05:03 MET DST)
NNTP-Posting-Date: Wed, 15 Oct 2003 11:05:03 MET DST
Organization: [Infostrada]