Group: Forum Members
Last Active: 11 Years Ago
Posts: 17,
Visits: 1
|
Hello,
I have got a crash on try to print Diagram to XPS using NPrintManager dialog (OS's: w2k8r2 x64 EN, w2k3 x64 EN). Is it known issue? How to fix it?
Here is my code... Maybe I did something wrong...
namespace TestXPS { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void Form1_Load(object sender, EventArgs e) { var shape1 = new NTableShape(200, 200, 50, 50); var shape2 = new NTableShape(400, 200, 50, 50); var connector = new NLineShape(); nDrawingDocument1.ActiveLayer.AddChild(shape1); nDrawingDocument1.ActiveLayer.AddChild(shape2); nDrawingDocument1.ActiveLayer.AddChild(connector); connector.FromShape = shape1; connector.ToShape = shape2; }
private void button1_Click(object sender, EventArgs e) { var printManager = new NPrintManager(nDrawingDocument1) { PageSettings = new PageSettings(), Layout = PagedLayout.FitToPages }; printManager.ShowPrintPreview(); } } }
Thanks in advance!
Note: current problem isn't actual for all instances of Windows Server 2008 R2 x64 EN and Windows Server 2003 x64 EN but I reproduced it on several.
|