Generate XML Directly Into A String Instead Of Creating A Xml File?
Aug 3, 2010How can I generate XML directly into a string instead of creating a xml file?
View 3 RepliesHow can I generate XML directly into a string instead of creating a xml file?
View 3 RepliesI am trying to execute Plink from a Windows Service. I have tried creating a bat file and executing directly as a command and neither works. I the bat file it acutally initiated the command but it didn't execute, just sat there till I killed it. in a bat file
[Code]...
how do I generate a .txt file containing such string?
View 1 RepliesOk, so I'm working with a team of people/programmers and we are all trying to explore the possibilities within Visual Basic 2008. As such, we are all working on our own programs at the same time, but all for one small organization. Well, I'm working on making an installer that will bascially do as follows:
View 4 RepliesI have a vb.net app that I create an excel file with from sql data. It creates it fine but for cells that have a social security number, it makes that cell numeric and removes the leading zeros. Does anyone know how to force this cell as a string when adding it to the worksheet? Is there a property or method I can call to do this in my vb app?
View 1 RepliesI am trying to save an image object to an MP3 tag to do this i need the file contents of a .jpg file as a string ... the following method works to get this:
vb
Image.Save(tempPic, Drawing.Imaging.ImageFormat.Jpeg)
Dim sPicture_Data = Space(FileLen(tempPic))
Dim FileNo = FreeFile()
[Code]....
Private Sub txtname_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtname.TextChanged
myConnection.Open()
[CODE]...
I want to four digit code like Abneesh than first query finding max of A and second string take string A than code generate like A001----------A999
I am making trying to make a program that can read the file information directly from a specified file, but I am having a lot of difficulty reading things like file comments.An example of this can be found in windows XP when you alternate / right click on any file and click on properties. You'll get a lot of extra information.Now I have a few questions about this.
1.Can this information even be read in VB.NET
2.If so how
3.If not do I need to create some kind of data file to store the file information
Here is what I did so far
[Code]...
I have a web service that is currently calling the DOS command copy to put a text file to a specified network share.
This is the code:
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports System.Data
Imports System.IO
Imports System.Xml
[Code] .....
It appears doing this might be causing some problems and our front-end programmer suggested I see if I can output the stream "output" directly to the network shared printer specified by the SOAP request. Is this possible? This is VS 2010
Is it possilbe to use a file pointer to go directly to specific place in a file
using vb.net streamreader
e.g. using streamwriter
fred
john
pete
dave
jim
I want to point to fifth item ie 'dave'
please tell me what is below code doing? is it creating array with two values or its creating to string index which will take value later? [code]
View 4 RepliesIm running VB.Net 2005.Inside of the program I use the line ystem.Diagnostics.Process.Start("program_) to open multiple programs. For all but one of them this works perfectly. This erros when I try to run a batch file using. System.Diagnostics.Process.Start("C:xx.bat") the batch file opens but then throughs a number of unreconizable java errors follow.
[Code]...
is there any code for opening a file without using any dialogbox? directly
View 4 RepliesHow do I access a file located directly in my bin folder via a relative file path?
View 2 RepliesWhen a user clicks on the button called "save" on a webpage opened in webbrowser1, it downloads a text document to the hard drive and explorer asks user is asked where it should be saved. How can I intercept this and directly download the textfile into a richtextbox without triggering the "save file to disk" alert ?Maybe an IDownloadManager implementation?
View 1 RepliesIs it possible to write a binary file directly to the clipboard in .NET? (Rather than write it to a file and then copy it?) the file is not an executable but will be pasted to the desktopfolder for example. [Code]
View 1 Repliesi need to generate the 200 character as a string at random and search for the fifth and the third vowel. this is what i have done so far but im only getting one character at random!! [code]
View 7 Repliesi need to create a random string (length of 6) out of the following chars:
"0123456789abcdefghijklmnopqrstuwvxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
How could i do this?
My Sharepoint and Enterprise 2.0 Blog [URL]
I need to generate a lot of random 2 character strings for my application. it's a VB console application. basically what I have tried for random strings is this:
[Code]...
I want to generate all possible string (a-z, A-Z, 0-9)
[code]...
Using OpenFiledialog I can access a file. Is there a way that I can include a specific file in the code? This would allow me to access the file directly without the selection process and the application would always use that same file.
View 14 RepliesI'm trying to "convert" an Access DB to a stand alone application. I have under estimated the differences between VBA and VB. Although I have many questions, I'll focus on this topic first.
The Access DB collects and maintains SNMP traps from a radio station. I import CSV files from a remote Unix server via FTP, parse the text line-by-line, and add to a table as a new record. So far, I can parse the text and add to a dataset but I want to write directly to the data source. I also need error handling that will trap errors for duplicate records. There is a Reconcile function that ensures that all lines in the CSV files are added to the table before the files are permanently deleted. Here's what I have so far:
Public Class clsRnm
Private msTrapTable As String
Private moTrap As clsRnmTrap
[Code].....
I'm looking for a way to save text directly to an encrypted file, without saving it to a plain text file and encrypt this text file afterwards.
I don't care about the encryption type used as long as it is easy to implement and secure enough..
how to build it and how to manipulate it?can i use the data of an access file table as a matrix directly?
View 8 RepliesHow do I generate random text? (Numbers+Letters, or just letters)
View 1 RepliesI want to create a page that allows a user to upload a file directly to my ftp server. For some reason when I run the code and try to upload a file I get:
ERROR: Could not find file 'C:Documents and SettingsuserMy DocumentsVisual Studio 2010ProjectsASP.NETuploadASP.NETuploadfile.txt This is not where the file is located. I am fairly new to .NET programming so I may have done some things incorrectly.
Here is my code:
If FileUpload1.HasFile Then
Dim fileExt As String
fileExt = System.IO.Path.GetExtension(FileUpload1.FileName)
fileExt = fileExt.ToLower
[code]....
How can I generate a random string of 8 numbers and letters?
View 8 RepliesIn my application, a string generated its length can varying from 1 to 100 (not using random number algo). But I want if length is less than 7 than need to add integers 1,2,3.. untill its size reach to 7. I implements it using while loop as :
If generatedUserName.Length < 7 Then
Dim count As Int32 = 0
While generatedUserName.Length < 7
[Code].....
Is any other better way such as enbuild function Tostring() with some parameter?
I need to generate all combinations (not permutations) in VB .NET, I've been search and all I found is for permutations (some says combinations but when I was try it, all are permutations).
What I need is to generate combinations from string array:
Dim data_array As String() = {"one", "two", "three", "four", "five", "six"}
I need that: If I say just 1 length, it must returns:
one
two
three
four
five
six
If I say 2 length, it must returns:
oneone
onetwo
onethree
onefour
... etc ...
twoone
twotwo
twothree
... etc ...
And continues til end with all combinations. If I say more length do it as well.
I am trying to 1) write code in VB2010 that will get a JPG image from a Access Database field and write the image to a PictureBox 2) write code which will write a JPG file to an Access Database field. I have already sucessfully coded this in VB6, without fully understanding what I was doing.
Browsing the various forum's I have come across a few discussions on this subject, but due to my complete amerture status I don't seem to be able to follow the logic.
Below is the VB6 code
Writing JPG file to DataBase:
Dim bytBlob() As Byte
Dim intNum As Integer
[Code]....