Solved

emailing with winzip with vb50

Posted on 2002-04-22
7
167 Views
Last Modified: 2010-05-02
I would like my users to select a button and on execution it will zip a file attach it to a new e-mail.

I am using winzip 8.1 outlook 98 and vb5.0

Any suggestion on how to achieve this.

Thanks
Steve
0
Comment
Question by:steve_mills
  • 4
  • 2
7 Comments
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
Hi!

Here's something for you over the net:

View code...
http://www.planetsourcecode.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=5946&lngWId=1

Description: This code will send email through MS Outlook 98, (or the most current version on your computer), using MS Excel 7.0 or higher.

This will help you to attach and send a mail using outlook.

That's it!

glass cookie : )

PS. Wait till I get the winzip coding...
0
 
LVL 8

Accepted Solution

by:
glass_cookie earned 200 total points
Comment Utility
OK, got the link...

View code...
http://www.planetsourcecode.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=14063&lngWId=1
Description: Simple code to zip/unzip with Winzip

AND

View code...
http://www.planetsourcecode.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=4696&lngWId=1
Description: this is actually not a code but this is just a list of parameters to use WinZip in VB.. I hope this will help those who are interested in my previous posting namely: "Compressing Files thru VB(w/WinZip)"

That's it!

glass cookie : )
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
First, compress the file, wait until the file is generated, then use the 1st link that I posted to send attach and the mail.

To wait, you could do something like:

While Dir("C:\My Folder\GeneratedZipFile.zip") = ""
DoEvents 'Send a pause
Wend

That's it!

glass cookie : )
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
see this other free component for zipping at http://vbaccelerator.com/codelib/zip/zipvb.htm

a question about e-mailing is already active at http://www.experts-exchange.com/visualbasic/Q.20292494
0
 

Author Comment

by:steve_mills
Comment Utility
glass cookie

Having trouble passing info to the winzip code.

Could you send some code showing me how to pass varibale to the winzipit function.

Thanks
Steve
0
 

Author Comment

by:steve_mills
Comment Utility
Thanks for the info I know have enough info to go on with

Thanks
Steve
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
Oops!  Sorry for not replying to your previous post - I forgot about it since the last time I saw it.

Thanks for the points : )

That's it!

glass cookie : )
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now