Home > Software engineering >  In VB how to modify the XML string
In VB how to modify the XML string

Time:09-25

I have a XML format of the RPX file, there is the ConnectionString="Provider=SQLOLEDB. 1; Password=123456; Persist Security Info=True; User ID=sa; Initial Catalog=DYXERP_TEST; The Data Source=ABC - PC,
"
I need to put the ConnectionString="Provider=SQLOLEDB. 1; Password=121212; Persist Security Info=True; User ID=sa; Initial Catalog=DYXERP_TEST; Data Source=server "

How to rectify? I tried to use text, binary stream file operations are not line, thank you

CodePudding user response:

ActiveReports should have the DataSource property, run a specified data object, do not need to modify the contents of the original the RPX,
Or directly Set the ConnectionString property: Set the Connection string programmatically

CodePudding user response:

Back upstairs, no good, when the RPX loading, have already put the RPX content of the data load came in, can't change itself Activereport data source connection

CodePudding user response:

If the file is XML, then use the XML object to modify,
Refer to the Microsoft XML 6.0

CodePudding user response:

ActiveReports for the.net report user manual: data binding
Not to Run () after the show?

When the RPX or the original design, remove the ConnectionString;
Or as # 3 say use XML to modify first remove the ConnectionString,

CodePudding user response:

Apparently can change, change after the next start to take effect,
  • Related