سؤال

I have a client side report that is displayed in a report viewer within a webform. The report displays perfectly until I create a hyperlink within a textbox. However, when I try to render the report, it crashes with the following error:

An error occurred during local report processing.

Nothing fancy is done with the link. The link is static, not altered by any code, and points to an external site.

هل كانت مفيدة؟

المحلول

Apparently, there is an option EnableHyperlinks on the LocalReport object that I couldn't find in the designer, but is accessible during runtime:

reportViewer.LocalReport.EnableHyperlinks = true;

Once I included this single line the report stopped crashing and the link worked.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top