作成日: 2014/04/04 最終更新日: 2014/04/04
文書種別
制限事項
詳細
C1PrintDocumentのRenderGraphicsクラスを使用して図形や文字を描画し、C1PrintPreviewControlでプレビューすると、文字がすべて表示されなかったり、ズーム倍率によって図形の一部が表示されなかったりする現象が発生します。
この現象は、RenderGraphicsオブジェクトで生成したメタファイルをC1PrintPreviewControlにGDI+で描画していることにより発生しています。これはGDI+でメタファイルを描画する際の問題で、制限事項になります。
この現象は、RenderGraphicsオブジェクトで生成したメタファイルをC1PrintPreviewControlにGDI+で描画していることにより発生しています。これはGDI+でメタファイルを描画する際の問題で、制限事項になります。
回避方法
次のいずれかの方法による改善をご検討ください。
- RenderGraphics.UseClassicDrawMethodプロパティをTrueに設定する
- C1PrintDocument.EmfTypeプロパティをEmfPlusOnlyに設定する ◎サンプルコード(VB)
- 図形の描画にRenderGraphicsオブジェクトを使用せず、RenderRectangleオブジェクトやRenderEllipsオブジェクトを使用する ◎サンプルコード(VB)
C1PrintDocument1.EmfType = Imaging.EmfType.EmfPlusOnly
◎サンプルコード(C#)
c1PrintDocument1.EmfType = Imaging.EmfType.EmfPlusOnly;
Dim rec As RenderRectangle = New RenderRectangle()
rec.Style.Borders.All = LineDef.Empty
rec.Height = "5cm"
rec.Width = "5cm"
C1PrintDocument1.Body.Children.Add(rec)
rec.Style.Borders.All = LineDef.Empty
rec.Height = "5cm"
rec.Width = "5cm"
C1PrintDocument1.Body.Children.Add(rec)
◎サンプルコード(C#)
RenderRectangle rec = new RenderRectangle();
rec.Style.Borders.All = LineDef.Empty;
rec.Height = "5cm";
rec.Width = "5cm";
c1PrintDocument1.Body.Children.Add(rec);
rec.Style.Borders.All = LineDef.Empty;
rec.Height = "5cm";
rec.Width = "5cm";
c1PrintDocument1.Body.Children.Add(rec);
旧文書番号
80766