Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1850
Excel Export Bug....key not found in dictionary
posted

This following code causes the excel export to fail with "Key not found in Dictionary". I am using build 2041.

 private void OnGridBeginExport(object sender, BeginExportEventArgs e) {

        e.Layout.Bands[1].Hidden=true;
    }

Parents
  • 469350
    Offline posted

    What version are you using? Build 2041 of what version?

    Can you post more information, such as the call stack of the exception?

    Without any more information, by best guess is that your parent band has a formula in it which is referencing the child band, and since the child band does not exist in the exported document, it's failing to resolve the formula properly. To test my theory, you could set the ExportFormulas property on the UltraGridExcelExporter and see if the exception goes away.

Reply Children