Sorry to reply later, I just prepared some code as below:
```
ActiveReport rpt = new ActiveReport();
Page blankPage = new Page
{
Height = 11.69f,
Width = 8.27f,
Orientation=PageOrientation.Portrait,
};
blankPage.Margins.Left = 0.45f;
blankPage.Margins.Right = 0.1f;
blankPage.Margins.Top = 0.3f;
blankPage.Margins.Bottom = 0.3f;
blankPage.DrawText("-- Portrait --", new RectangleF(3.0F, 3.0F, 3.0f,1.0f));
rpt.Document.Pages.Add(blankPage);
Page blankPage3 = new Page
{
Height = 11.69f,
Width = 8.27f,
Orientation = PageOrientation.Portrait,
};
blankPage3.Margins.Left = 0.45f;
blankPage3.Margins.Right = 0.1f;
blankPage3.Margins.Top = 0.3f;
blankPage3.Margins.Bottom = 0.3f;
blankPage3.DrawText("-- Portrait --", new RectangleF(3.0F, 3.0F, 3.0f, 1.0f));
rpt.Document.Pages.Add(blankPage3);
Page blankPage2 = new Page
{
Width = 11.69f,
Height = 8.27f,
Orientation = PageOrientation.Landscape,
};
blankPage2.Margins.Left = 0.2f;
blankPage2.Margins.Right = 0.2f;
blankPage2.Margins.Top = 0.2f;
blankPage2.Margins.Bottom = 0.2f;
blankPage2.DrawText("-- Landscape --", new RectangleF(3.0F, 3.0F, 3.0f,1.0f));
rpt.Document.Pages.Add(blankPage2);
rpt.Document.Save(@"c:\temp\xyz.rdf");
Basically, there are 3 pages, first 2 pages use portrait layout, the last page use landscape layout, xyz.rdf the merged file.
This need to be tested in the real printer with [b]duplex [/b]mode.
The first 2 pages are ok, but, the last page is rotated. the words should face to the bottom of the page, you can see the difference by commenting first 2 pages code, just leave last page code and just print out the last page. The difference is obvious.
I am using ActiveReport6. Thanks.