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]
My application needs to extract an embedded file (OLE object) from an excel 2003 document to a file on disk. This file can be any type, not only an Office document. Searching in the web it seems to be possible by copying OLE object to Clipboard and later copying (binary) it to a file (¿perhaps using MemoryStream and FileStream?), but I see no working code about this.
I might not be placing this query at the right place.But i am having a problem packaging my vb.net application into a windows installer.My vb.net [3.5 fw] uses windows media player component + shockwave component. Now when i select a new project and go to setup wizard.. it gievs me the following error/warning:"the following files may have dependencies that cannot be determined automatically.[code]
I'm using the System.IO.Packaging namespace in my VS2005 application. The zip compression works fine for 1 or many files. The unzip though for some reason seems to only unzip one file. Initially I did this in vs2008 at home and it worked fine, but now at work with vs2005 it's only unzipping one of the files. Can you see anything that I might be doing wrong?
Public Sub UnzipArchive(ByVal zipFile As String, ByVal UnzipLocation As String) If (Not zipFile Is Nothing And Not UnzipLocation Is Nothing) Then Dim zipFilePackage As Package
I have developed an app and an installer for it and everything works fine. I now feel I should add a bit of obfuscation to the code before it gets released into the wild. VS2010 comes with the CE edition of dotfuscator so I've run it and it produced an .exe in a 'Dotfuscated' folder. Do I just replace all four 'Primary output from. custom actions with the assembly from the Dotfuscator folder or am I missing something?
I'm developing a very simple program in VB2010 Express that will create folders based on entries in a remote database. I am fully aware that the minimum requirement to run the exe is the latest .net framework, however I have a few added resources to the file, and when I try to run the executable on another computer, it fails to run stating that the resources are missing.
How do i compile my VB code AND the resources together into a stand-alone executable that only requires the .net framework to be installed?I have already tried to google this issue, however every answer I find has nothing to do with my initial question..
I want to package and deploy windows app which has images in allimages folder,resource folder is also generated that refers to all images in my vs 2008 application.I have calc.exe in debug folder.I tried deploying using setup project that uses windows installer, when i run application some images r not seen and error is generated.whatt r exact steps to package and deploy winform application in vs2008.
I have a utility that is a simple exe that is not installed compiled with VS2005 and works well. But when I upgraded to VS2008 the utility can no longer locate files in the active system folder. I have UAC turned off and am logged in as the Administrator and it still can not locate a file that I can see in Windows Explorer. The file I am looking for is PakMgr.exe.
I have finished coding an application which I designed for people working in my office. When I started to install the application to computers at the office, I realized that, in some machines, application doesnï¿½t work properly. Although it worked for 15 computers perfectly, for 3 computers following error code is displayed:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
I have a vb .net application where the user can choose a directory into which an excel file is written. If the user selects a system directory (yes, my users do this, don't ask me why) then a System.Runtime.InteropServices.COMException is thrown at runtime. I am handling this exception telling the user to please select another directory.