Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I wanted to change the name of the field Name in the qvd file programmatically by .Net C#. I'm loading the qvd through the
.Net Program, do the parsing with the XmlDocument,Change the field name and save the qvd with the different filename.
EVERYTHING WORKS FINE FOR SMALL QVD file(with 3 or 4 rows of data). The contents are intact and field names are changed, but with the bigger qvd's of size 35KB, the contents are changed, its not the same as the original qvd.
.Net code is attached below
FileStream fs = new FileStream(@"C:\\Work\\QVDExtractor\\myqvd.qvd", FileMode.Open, FileAccess.Read, FileShare.Read);
StreamReader sr = new StreamReader(fs);
StringBuilder sb = new StringBuilder();
.
.I'm doing all the XMLDom Parsing the change the <FieldName>myfield</FieldName>
.
sb.Append(sxml); // sxml is the XML after the fieldname is changed.
sb.Append(sr.ReadToEnd());
using (StreamWriter sw = new StreamWriter(@"C:\\Work\\QVDExtractor\\modified.qvd"))
{
sw.Write(sb.ToString());
}
Any help to solve is greatly appreciated.
-Ram
I don't think the qvd format is intended to be changed by third party tools.
Maybe you could use qvx instead?
regards
Marco
I tried the same code for QVX too, It didn't help me much the same behaviour.
-Ram
Hello, Has anybody got insights to this problem!!!