Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing the QVD Contents in .Net

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

3 Replies
MarcoWedel

I don't think the qvd format is intended to be changed by third party tools.

Maybe you could use qvx instead?

regards

Marco

Not applicable
Author

I tried the same code for QVX too, It didn't help me much the same behaviour.

-Ram

Not applicable
Author

Hello, Has anybody got insights to this problem!!!