Update data connection

After creating an xml report I often need to update the file with new fields. Is there a way to update the xml without deleting the connection first?
I tried to use the Edit connection but it doesn't update the fields.

Comments

  • Hello!

    Replace the XmlDataConnection object in report.Dictionary.Connections with a new instance: new XmlDataConnection { Name = ..., XmlFile = ... } and call CreateAllTables() in this case, the new columns will appear immediately.

This discussion has been closed.