We are using Infragistics v10.3
UltraGridDocumentExporter properly exports a PDF in Landscape but not to XPS LandScape:
This is the screen shot of the PDF Export:
This is the screen shot of the XPS Export:
ultraGridDocumentExporter1.TargetPaperOrientation = PageOrientation.Landscape;
ultraGridDocumentExporter1.TargetPaperSize = PageSizes.A4;
ultraGridDocumentExporter1.Margins = new PageMargins(30f, 30f, 30f, 30f);
Report rpt = new Report();
ISection summary = rpt.AddSection();
summary.PageMargins.Left = 30f;
summary.PageMargins.Right = 30f;
summary.PageMargins.Top = 30f;
summary.PageMargins.Bottom = 30f;
summary.PageOrientation = PageOrientation.Landscape;
summary.PageSize = PageSizes.A4;
ultraGridDocumentExporter1.Export(GridHourly, summary);
ultraGridDocumentExporter1.Export(GridHourlyDetail, summary);
var reportFileName = @"c:\temp\mssreport.xps";
using (PrintDialog prtDlg = new PrintDialog())
{
if (prtDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
try
// change to PDF and it creates the document correctly
rpt.Publish(reportFileName, FileFormat.XPS);
}
finally
Hi IsrealTan,
I have created CAS-81257-45P5LX to facilitate further investigation of this issue; please attach your sample to this case.
If you experience any difficulties at all, attaching your sample, please let me know.
Sincerely,
Chris K
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
I have the sample project but I can't attach a zipped file. I renamed it too but that did not work either.
It is late Friday afternoon here so I'll probably have a sample by early next week. Thanks for the great support.
IsraelTan said:AutoSize on the UltraGridDocumentExporter is set to None. What I don't get is PDFs gets rendered properly while the XPS does not.
Yeah, I don't get that either. I'm not able to reproduce that part, so if you can post a sample project, I'd be happy to look into it for you.
AutoSize on the UltraGridDocumentExporter is set to None. What I don't get is PDFs gets rendered properly while the XPS does not.