Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Richard MacCutchan 19-Jul-13 4:04am    
You may get a quicker answer at the site that supports this product.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900