题
我要建一个c#应用程序,显示印预览(文件)和随后要求用户(s)"迹象"的文件通过一个InkPicture控制。我没有问题提取的位从inkpicture控制和应用到PrintDocument(我这样做之前在过程之前印预览和画那些图像printdocument)但是目的印刷预是允许的用户(s)审查该文件,因为它将以印刷和签署它。
我试过重的文件要修改的一个
// MyDocumentType derives from PrintDocument and ipSignature is a
// user control derived from InkPicture that converts the ink to
// a gif
MyDocumentType doc = (MyDocumentType)ppcPreview.Document;
doc.AddSignature(ipSignature.Gif);
ppcPreview.Document = doc;
我试过重建的打印预览控制
MyDocumentType doc = (MyDocumentType)ppcPreview.Document;
doc.AddSignature(ipSignature.Gif);
ppcPreview = new PrintPreviewControl();
ppcPreview.Document = doc;
没有效果。
无效的控制之后,它的修改也并没有什么。
我有点难倒。
解决方案
你有没有尝试使用InvalidatePreview的方法,而不是无效的?
不隶属于 StackOverflow