🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Spedire un recordset via mail in formato Excel

#2995
From: Albe V�
Date: Fri, 06 Dec 2002 17:55
23 lines
2106 bytes
"Sergio (BilboGe)" <bilboge@inwind.it> ha scritto nel messaggio
news:l55I9.51022$qF1.2069204@news2.tin.it...
> Ciao a tutti,
> qualcuno sa dirmi come spedire un RecordSet via Mail in formato Excel
> senza dover generare un file excel  in un'applicazione Visual Basic 6.0 ?
> In Access esiste il comodissimo oggetto Docmd.SendObject (di Office) in
> Possibile che non esista un corrispondente oggetto VB?

Pr generare file Excel credo che sia indispensabile accedere con Ole
Automation a Excel o ad una applicazione che possa salvare in Xls.

In alternativa, � comodissimo creare un file .Csv, che pu� essere benissimo
aperto da Excel e che dal recordset puoi avere con un solo comando (che non
ricordo, ma dev'essere qualcosa tipo Recordset.GetString o simile). L'ho
usato alcune volte, e con i parametri giusti � velocissimo, tipo 10.000
record in un secondo.

Poi, salvi la stringa in un file .Csv e lo invii con le Mapi.

Ciao

Alberto
Technical Details
Message-ID: <9w5I9.64088$3l.1754338@twister1.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
References: <l55I9.51022$qF1.2069204@news2.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,f576374e01de9d68
X-Google-Attributes: gidf94ee,public
X-Google-Thread: 10b997,f576374e01de9d68
X-Google-Attributes: gid10b997,public
X-Google-ArrivalTime: 2002-12-06 09:55:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
From: "Albe V�" <vaccariTOGLI_QUESTO@hotmail.com>
Newsgroups: free.it.visual-basic,it.comp.lang.visual-basic
References: <l55I9.51022$qF1.2069204@news2.tin.it>
Subject: Re: Spedire un recordset via mail in formato Excel
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <9w5I9.64088$3l.1754338@twister1.libero.it>
Date: Fri, 06 Dec 2002 17:55:17 GMT
NNTP-Posting-Host: 151.30.175.115
X-Complaints-To: abuse@libero.it
X-Trace: twister1.libero.it 1039197317 151.30.175.115 (Fri, 06 Dec 2002 18:55:17 MET)
NNTP-Posting-Date: Fri, 06 Dec 2002 18:55:17 MET
Organization: [Infostrada]