I'm not sure exactly which forum/discussion to ask this in. If I'm in the wrong place, I'm sorry.
I've built a WinForms app that I want to display some reports using the ReportViewer. What I want to do is set the palette for these reports using a custom palette class I've added to the WinForms project.
I have the reports in their own project so that if users decide they want a web app I can easily reuse the reports (hopefully).
I don't know how to set the palette on the report and i can't find anything online about how to do this. I know I can go into each report and set the colors individually but that is not efficient or scalable.
My code in the Winforms app to set the report in the ReportViewer is like this...
var reportSource =
new
ReportsLibrary.MyReport();
reportSource.ReportParameters[
"MyParam"
].Value = value;
myReportViewer.ReportSource = reportSource;
myReportViewer.RefreshReport();
I figured out how to use the custom palette with charts within the winforms app like this...
myChart.Area.View.Palette =
new
CustomPalette();
I want to be able to do something similar in the Winforms app. I don't want to have to copy my CustomPalette class over to my ReportsLibrary project.
Is this possible?
I want to be able to do something like...
reportSource.Palette =
new
CustomPalette();
VS2013
Version R3 2016 (2016.3.914.1)