I am trying to compress and uncompress files. I have read that System.IO.Packaging might suit my needs, but I can not find it. I am using VS 2008 professional. Imports System.IO.Packaging at the top of class does not work (it throws an error). I did find system.io.compression. Does this replace packaging? If it does, does it handle .7z and .rar files?
I'm trying to use system.io.packaging to create my own zip class. I've got it to work, but i'm not happy with the compression rate. In the code below I've set it to the maximum compression rate, yet winrar is able to create a zip (at maximum compression) that is 2/3 of the size when I make it. Am i doing something wrong?
I am attempting to read Excel 2003 cell content through a Visual Basic 2008 program. Searching Help for the subject yielded an example Function named XLGetCellValue (ByVal fileName As String, ByVal sheetName As String, Byval addressName As String) As String
upon pasting the above three Iports to the Program, Igot the following error message:Warning 1 Namespace or type specified in the Imports 'System.IO.Packaging' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
I would really like to know if there is anyway in which I can package two or more set up files together with my vb.net application; so that after installing the application, it automatically starts installing the other applications from the other set-up files.
I was able to create an application in VB.net that talks to a SQL Server CE database.Now i want to deploy this application using the publish feature with clickonce.An issue im having tho is when I install the application on another computer it keeps looking for my sql server on my development pc.
Ive added the .sdf when i package my solution but its still an issue.How do I change my connection string to connect to the .sdf file that I included in the package? this is my current connection string which looks at the sql server: connectionString = " Data Source=CHRIS-PCSQLEXPRESS;Initial Catalog=ce_db;Integrated Security=True"
I'm using the System.IO.Packaging namespace to compress a file. I'm getting an error that says 'file contains corrupted data'. So i tried using a txt file with just a few characters, and I got the same error. I read where someone said to make sure you have all streams closed and I checked this and do so I'm not sure what to try now. Here is my code.
I was just wondering how to extract or parse any particual tags (whichever I specify) from webpages. I know how to extract text and links from webpages, but I tried to use the same method from the following code for div tags, title tags etcetera and it doesn't seem to work:
I have been working lately on a program who extracts URl Source codes!The program does work with most of URL but not for MEdiafire URL!When i check the source code from the web browser i can see there is some code missing;y tried diferrent types of Encoding.
Example:This is the final source code extracted from WEBBROWSER(Firefox,InternetExplorer,GoogleCrome)
I am trying to extract text from an htm file (output.htm) to write into an SQL database.
I used "pdftotxt" to re-write the original pdf document into an htm file, in 'raw' format, and end up with lines like this:
Sun20 Off 0330 0329
What I am trying to do, using the above example, is to look for anywhere in the list where a date(e.g Mon24) is followed by lines containing KL ####, and to extract the date and the KL #### for writting to a database.
It seems like a huge task that is way beyond my limited capabilities, so I would be very grateful for some sample code in VBasic.
I have a text file in c: as abc.txt which displays empid=e001, name=john, salary=5000 Now, we need to have a method which wil take empid as parameter and will find the line with the empid and create a text file with that line
e.g if we pass e001 to the method it will write empid=e001, name=john, salary=5000
to a new file with the name e001 So all these files created will be stored in a folder c:epository
I am trying to extract text from a .pptx file. I am able to extract from all other shapes except a shape that is identified as a msoPicture to right click on this shape in powerpoint and ungroup it, but when I try to do this from code it tell me that the ungroup method only applied to group shapes.I did some research and found out that the msopicture shape comes from a .emf file but I don't have the least idea how to ungroup this shape or get the text from it through code.NB: When I right click on the shape in powerpoint and select ungroup a message box pops up saying "This is an imported picture, not a group. Do you want to convert it to a Microsoft Office drawing object?". But I cannot seem to find a way in code to convert this shape to Ms Office drawing object.
This is the code i wrote in order to First open a csv file as excel, then find the required three columns, n then read data from them n save the data into another variables showing them in textbox. As about the csv file, it contains many columns out of which my focus is on only 3 columns under title ID, L, Lg.Problem is Excel doesnt actually open but Excel.exe process runs in task manager. But by this point its not the compile error; Compile error comes at 'Next' Statement. It says Compile Error: Next without For!!
Private Sub cmdFind_Click() Dim xlApp As Excel.Application Set xlApp = New Excel.Application
I have a program made in VB that on a button click extracts a exe file from its resources to the HDD then runs the program and deletes it after it closes. I first used the desktop to extract the file to, but seeing as I need to use this program on several computers the account names will be different so this is of no use. I've tried using C: but access is denied.
I've found all sorts of threads about extracting file icons, and I'm able to do that no problem, but I would like to also extract some other information from a file (like you can find in the properties window), such as the file description. Are there any commands that are geared specifically toward getting this information?
I have been looking everywhere to find a way to extract the main icon from for example c:/test/file.exe and put the icon in for example c:/test/fileicon.ico i did find something but the icon looked dreadful, it must of been like 16 colours.
anyway if someone has managed to do this or knows how to do it please help before i go insane.
also i will settle for knowing how to do it with reshacker.exe instead which i also cant get to work.
I have a csv file with 48 columns of data. I need to open this file, place it into a data structure and then search that data and present it in a DataRepeater. So far I have successfully used CSVReader to extract the data and bind it to myDataRepeater. However I am now struggling to place the data in a table so that I can filter the results. I do not want to use SQL or any other database.
So far, this is working in returning all records: Private Sub BindCsv() ' open the file "data.csv" which is a CSV file with headers" Dim dirInfo As New DirectoryInfo(Server.MapPath("~/ftp/")) Dim fileLocation As String = dirInfo.ToString & "data.txt" Using csv As New CsvReader(New StreamReader(fileLocation), True) [Code] .....
i am a newbie to visual basic .neti have a vb.net database that has 3 textboxs that go to a listbox and also store in a database.i was wondering if i can extract the data from the listbox to excel like a csv file or something along them lines s i have no clue on how to do this.
I am trying to programmatically extract from a compressed zipped folder which has the path of c:abc.zip and 4 files within the folder (one.txt, two. txt,three.txt and four.txt). I want to place two.txt in a destination path of c:xyz wo.txt.
I have prepared an application which uses SQL Server 2005 Express Edition as its database and Reports using Crystal Reports which comes integrated with VB .net 2008.I am able to package and deploy my application alone. To the system where I am going to install doesnot have SQL Server or Crystal report runtime files.I want to include the same in my package so that it gets installed and followed by my application.I have chosen install application from the same location and tried to package it. It doesn't work.Please suggest me steps so that I can have the required softwares packaged with my application so that the user when he installs, it installs at one go.
I am developing an application and one of the candys of the application is a form where data is extracted from XML from internet. I would like to know, if there is any possibility that, when user clicks button on my form, data is extracted from this XML file [Code]