DrillDown Page Is Always Portrait Even If Assigned Landscape

Stimulsoft Reports.WPF discussion
Post Reply
billy.goforth
Posts: 24
Joined: Fri Apr 09, 2021 1:44 pm

DrillDown Page Is Always Portrait Even If Assigned Landscape

Post by billy.goforth »

I have a runtime report I'm building solely in C#. No template.
I have created a drilldown from a Table using a New StiPage().

Anytime I click the table band row it loads the drilldown page and the data, BUT the page is ALWAYS in portrait mode.

I cannot get it to hold the Landscape Setting that I have placed on it when Enabling Drilldown and assigning the drilldown page.

When I test in the designer, it is the exact same behavior. The drilldown report page will never load in landscape.

How can I do this? My drilldown report has too many columns to render in portrait?

See Below where I am assigning the Detail Page as Landscape.

Code: Select all

var detailPage = new StiPage();
detailPage.Orientation = StiPageOrientation.Landscape;
if(resultSetMetadata.DrillDownStoredProc.HasValue())
	{
		page.DrillDownActivated = !isDrilldown;
		detailPage.Name = "DetailPage";
		report.Pages.Add(detailPage);
	}
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: DrillDown Page Is Always Portrait Even If Assigned Landscape

Post by Lech Kulikowski »

Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.
billy.goforth
Posts: 24
Joined: Fri Apr 09, 2021 1:44 pm

Re: DrillDown Page Is Always Portrait Even If Assigned Landscape

Post by billy.goforth »

I don't have a template.

All of my code is in C#.

Are you wanting me to send you my entire project? I cannot do that. There are DBs involved at runtime and such.

One thing I did notice, if I click on the report canvas, it then flips to Landscape view, but only after I click.

Is there a way to perform that same action in the WPF Viewer behind the scenes?

This seems to be an issue directly with the WPF viewer as the Web NG Viewer works as designed and loads the DrillDown page in landscape.
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: DrillDown Page Is Always Portrait Even If Assigned Landscape

Post by Lech Kulikowski »

Hello,

You can download the project from our samples, make necessary changes and send us for analysis
https://github.com/stimulsoft/Samples-WPF-CSharp

Thank you.
Post Reply