Hello
I have a problem when printing report with C1MultiDocument. I have 2 report one pointrait, one landscape; need to be printed or exported to pdf as a single document.
C1Report reportOne;
C1Report reportTwo;
// load report and binding data for reportOne and reportTwo
…
C1Report[] reports = new C1Report[] { reportOne, reportTwo };
C1MultiDocument multiReport = new C1.C1Preview.C1MultiDocument();
foreach (var item in reports)
{
item.C1Document.PageLayout.PageSettings.Landscape = isLandscape;
item.C1Document.PageLayout.PageSettings.PaperKind = PaperKind.A4;
multiReport.Items.Add(item.C1Document);
}
multiReport.PrintDialog(reports[0].Document.PrinterSettings, null, true);
When printing from multiReport:
- On Japanese Windows, I get a warning message box
[MS Gothic]というフォントは既に他のドキュメントによってインストールされているため、ドキュメント自体がゆがんだ表示になってしまうかもしれません
- On English Windows, there is no warning or error message box
When export to PDF, I get no warning or error message box with both OS. I also have some situations using C1MultiDocument like above, but it is ok on both OS. When print each report as a document, it is also ok. The only font used in reportOne and reportTwo is MS Gothic. I tried change to MS ゴシック in report file (xml file), but it does not solve the problem.
I can not find out the cause. Please help!
Thanks