Hello every one I have tried to add some line to existing xml file but every time that i did it previous lines was replaced by new one
i tried to use dataset,streamreader and ... but i couldnt,
please help me
View Complete Post
I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.
Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's
I have to process giant XML files that are 6GB+ in size. The problem is that there are no line breaks in the file, and the XML is improperly formatted (no root element). Therefore I can't use the XML class to read the file, and I can't open the file in any text editor or even "Type" it in a command window because the 1 line in the file is over 6GB.
The file contains UTF8 characters. What I want to do is first write a program just to read and display 100 characters at a time so I can look at the contents. Next I want to be able to create a new file, write a root element, read/write the contents of the file and then write the closing root element.
Can anyone provide a code snippet of how to read and display the file contents 100 characters at a time. I can then figure out the rest.
Im trying to pull a random line from a text file and store it into a variable.
I found this piece of code on the web which looks good but I cant seem to get it working in vs 2010, any ideas ?
Dim MyString As String
Dim MyBuffer() As Byte
Open "C:\AFile.txt" For Binary Access Read As #1
ReDim MyBuffer(LOF(1) - 1)
Get 1, , MyBuffer
MyString = StrConv(MyBuffer, vbUnicode)
ReDim MyBuffer(0) 'Free up memory
Many thanks in advance.
I've found an article stating that this can occur when the table has no clustered key and you attempt to reindex. That is not my problem.
I am attempting to do a bulk-load into a table using SSIS. I have seen other people having this issue, unfortunately their issue always goes away on its own. I have restarted the service, and the machine as well as installing sp1 and the problem persists.
Here is the error, any help troubleshooting this issue is appreciated
Log Name: Application
Date: 9/21/2010 1:32:07 PM
Event ID: 17066
Task Category: Server
SQL Server Assertion: File: <pageref.cpp>, line=913 Failed Assertion = 'IS_OFF (BUF_MINLOGGED, m_buf->bstat) || pageModifyType != PageModifyType_Contents || GetPagePtr ()->IsTextPage ()'. This error may be timing-related. If the error persists after
rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or rest
there are 2 web-applications: web-app1, web-app2.
Each webapp has one site collection. that is
webapp1 has site-collect1
webapp2 has site-collect2
Now for some reason I want to copy site-collect2 to webapp1 as site-collect1.
content-db doesn't work because of database ID issue.
I am trying to use 'save as template' from site-collect2 and can get STP file but how do I assocaite this STP file to site-collect1. I am looking for any STSADM commands or source code that does this. Here also I wanted to create site-template with 'data'
but it is giving me error. I will check this later.
i wanna make a system through which a file uploaded replaces a file on the same location and with the same name. how can i do it. please help
hi therei need to add a string in a existing resource filei am trying this but does not workdo you know the problem?
Private Function AddString(ByVal file As String, ByVal result As String)
Dim language As Google.API.Language = Google.API.Language.English
Dim resxFilePath As String = file '"c:\files"
Using rr As New ResXResourceReader(resxFilePath)
Dim outputFilePath As String = resxFilePath.Replace(".vb", "") & ".resx"
Using rw As New ResXResourceWriter(outputFilePath)
rw.AddResource(result, Replace(result, Chr(34), ""))
Hey i want to generate a report and so while designing the rdl file i want to place some label in the same column name to display ex:
employee details - COLUMN NAME
all these 3 fields should come under the column name "employees".
my question is - i need the code to place these sub labels in new lin
In my application (C#) users need to select existing file or create new file where they want to save some data. Existing files are in read-only mode because they are under Perforce subversion source control. I'm going to handle file checkout in my application
automatically after user has selected the file where he wants to save data (or if file is new file, application adds it to source control).
The problem is that I can't use savefiledialog, because it complains about selected file being read-only. I could use openfiledialog, but it has couple problems. First problem is that openfiledialog confirm button has text "Open", which is something
i could live with even though it would be better if it read "Save" :)
Second and bigger problem is when you want to create new file in openfiledialog. I set CheckFileExists to false so when user writes file name and presses "Open"-button, openfiledialog doesn't complain about file because it doesn't exist and it
returns path to "new" file just fine. But problem is that if user has clicked or selected to some folder in openfiledialog and then writes file name and presses "Open"-button, openfiledialog just opens selected folder.
So basically I just need some file browsing dialog which works like savefiledialog but doesn't complain about read-only, i just need to
We have a existing web based project in Asp.net and would like to use third party silver light control in the same application.
We need a help how to include silverlight control and use .xaml to access.
Hi i have a comma deliminated text file which i am using to generate a multidimensional array using the following code:
Dim DefinitiveDatabase As String(,) Dim strfilename As String = (Server.MapPath("~\Definitive database.txt")) Dim num_rows As Long Dim num_cols As Long Dim x As Integer Dim y As Integer Dim value As Integer Dim ConditionName As String Dim strlines() As String Dim strline() As String Dim tmpstream As StreamReader = File.OpenText(strfilename)
strlines = tmpstream.ReadToEnd().Split(Environment.NewLine) num_rows = UBound(strlines) strline = strlines(0).Split(",") num_cols = UBound(strline) ReDim DefinitiveDatabase(num_rows, num_cols) For x = 0 To num_rows strline = strlines(x).Split(",") For y = 0 To num_col
I Have an existing pdf file with some editable fields like text boxes and text boxes, where i can enter data manually and save the file,
but i want to fill/paint data to these fields programmatically in vb.net, kindly share your thoughts..