473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Help with ComponentOne Zip

I am trying to convert QuickBasic and dos batch files into VB.NET. I
downloaded the resource kit along with the free ComponentOne Zip classes.
The examples that came with the zip utility were not real helpful as I am
relatively new to VB.NET. I need to unzip a file composed of about 20 text
files. Once the file is unzipped, I have a form which allows the user to
edit one of the unzipped text files. I then save the edited version and now
need to zip that individual text file back into the zip file. I know how to
edit the text file but the zipping and unzipping routines are giving me
fits. How do I do this? Thanks in advance for your help.

Dave Harris
Nov 20 '05 #1
1 2193
Hi Dave,

Not hard at all.

First, you have to use an imports statement at the top of your form, as
follows:
Imports System.IO

Imports C1.C1Zip

Then, to zip and subsequently to extract (q & d and you have to make sure
the filenames don't already exist):

Dim mzip As C1ZipFile

mzip = New C1ZipFile

mzip.Create("f:\imcapps\pslips_.zip")

mzip.Entries.Add("f:\imcapps\dbffiles\natlbl.dbf")

mzip.Entries.Add("f:\imcapps\dbffiles\summary.dbf" )

mzip.Close()

MessageBox.Show("now I will move the extracts of f:\imcapps\pslips_.zip into
f:\imcapps")

mzip.Open("f:\imcapps\pslips_.zip")

Dim i, x As Integer

x = mzip.Entries.Count - 1

For i = 0 To x

mzip.Entries.Extract(i)

Next

As a point of information, you can probably get the .chm help file for
componentone.com; also, there is an n/g at componentone.public.net.c1zip
that can offer some help.

HTH,

Bernie Yaeger

"Dave Harris" <dh******@woh.rr.com> wrote in message
news:uX**********@fe2.columbus.rr.com...
I am trying to convert QuickBasic and dos batch files into VB.NET. I
downloaded the resource kit along with the free ComponentOne Zip classes.
The examples that came with the zip utility were not real helpful as I am
relatively new to VB.NET. I need to unzip a file composed of about 20 text
files. Once the file is unzipped, I have a form which allows the user to
edit one of the unzipped text files. I then save the edited version and now need to zip that individual text file back into the zip file. I know how to edit the text file but the zipping and unzipping routines are giving me
fits. How do I do this? Thanks in advance for your help.

Dave Harris

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Michael Howes | last post by:
I'm looking for a power grid control to use for some C#/Windows forms development. There are a LOT of grids out there and trying to analyzes them could turn into a long task. Some things I'm...
1
by: yohaas | last post by:
Can anyone comment specifically on the ComponentOne Studio Enterprise 2005. I am in the need of a component libray for winforms and I am considering purchasing this one. Any comments about it would...
5
by: Jéjé | last post by:
Hi, I'm looking for a webcontrol which provide the same capabilities of the outlook grid. I have found 2 products, 1 provided by infragistics, the second by componentone. There is any other...
7
by: Alan Silver | last post by:
Hello, I've just been looking at the free PayPal component from ComponentOne and am somewhat amazed how insecure it is. They include all the transaction details in plain text in the querystring,...
1
by: Dean Slindee | last post by:
Working on a ComponentOne 2DGraph control. Got it all figured out (no documentation) except for the last step: loading the X and Y values to be plotted. Anyone got a working sample of how to...
6
by: Aaron Smith | last post by:
Has anyone used ComponentOne's Enterprise studio that comes in the VB.Net resource kit? I like some of the controls they have, but I've had a few wierd issues and I am wondering if that's a sign of...
3
by: Geoff Jones | last post by:
Hi I've installed the "free" ComponentOne software in the VB Resource Kit, however, I don't seem to be able to see any of the items in the ToolBox e.g. Chart. I can run the example files but...
3
by: Ronald S. Cook | last post by:
Hi everyone, We're needing to pick a suite of components for our C#/VS 2005 development. Top on our list is a treeview that integrates with a datagrid. I think all the big goes provide that. ...
7
by: christophe.marcelino | last post by:
Hi, I am using the ComponentOne tool for developping an automatisation of reporting. My problem is that when i try to export the report, using the printviewer of C1, it does it really well but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.