![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, Using AccessXP does anyone have vba code that they would share that would take a AnyName.PDF file and using WinZip zip it with encryption to AnyName.zip? |
#3
| |||
| |||
|
|
Hi All, Using AccessXP does anyone have vba code that they would share that would take a AnyName.PDF file and using WinZip zip it with encryption to AnyName.zip? thanks bobh. |
#4
| |||
| |||
|
|
Hi All, Using AccessXP does anyone have vba code that they would share that would take a AnyName.PDF file and using WinZip zip it with encryption to AnyName.zip? thanks bobh. |
#5
| |||
| |||
|
|
Why would you want your app to rely on WinZip being installed. Instead surf over to http://www.info-zip.org/ and check out Info-Zip. Info-Zip is a Free Ware Zip / UnZip library that can be used directly from Access programmatically. It comes as a Standard DLL that need NOT be installed or registered. Just distribute it in the same directory as you MDB/MDE and invoke it via VBA code. |
#6
| |||
| |||
|
|
bobh wrote : Hi All, Using AccessXP does anyone have vba code that they would share that would take a AnyName.PDF file and using WinZip zip it with encryption to AnyName.zip? thanks bobh. Why would you want your app to rely on WinZip being installed. *Instead surf over tohttp://www.info-zip.org/and check out Info-Zip. *Info-Zip is a Free Ware Zip / UnZip library that can be used directly from Access programmatically. *It comes as a Standard DLL that need NOT be installed or registered. *Just distribute it in the same directory as you MDB/MDE and invoke it via VBA code. Rdub |
#7
| |||
| |||
|
|
"bobh" <vulca... (AT) yahoo (DOT) com> wrote in message news:0064d3fe-a82c-46cd-98b9-64e6a84c8b30 (AT) t16g2000vbi (DOT) googlegroups.com... Hi All, Using AccessXP does anyone have vba code that they would share that would take a AnyName.PDF file and using WinZip zip it with encryption to AnyName.zip? thanks bobh. Winzip command line options:http://www.memecode.com/docs/winzip.html I use the following code to set the location of the winzip program * * ' Get path for Zip program *Check for 64bin Windows 12/17/2010 * * If InStr(1, Environ("CommonProgramFiles"), "(x86)") = 0 Then * * * * ' 32 bit OS * * * * strZipPath = "c:\program files\winzip\winzip32" * * Else * * * * ' 64 bit OS * * * * strZipPath = "c:\program files (x86)\winzip\winzip32" * * End If Use Shell to call Winzip Note: Winzip may open as an Icon at the bottom of the screen. You will need to click on it to run. |
![]() |
| Thread Tools | |
| Display Modes | |
| |