Windows 7下的PrintPreviewControl和PrintDocument问题 [英] Problems with PrintPreviewControl and PrintDocument under windows 7
问题描述
你好,
我在Windows 7下使用printpreviewcontrol遇到问题.
它只会在Windows 7而不是XP下出现(也许是Vista,我不知道).
我用上面的PrintPreviewContol和一个PrintDocument开始一个新表单.
在这种情况下,一切都会变得很完美.
但是,当我将PrintDocument添加到PrintPreviewControl时,它出错了(PrintPreviewControl1.Document = PrintDocument1)
PrintDocument上的所有内容都是空的,没有任何变量或其他声明.
发生的错误:尝试读取或写入受保护的内存.
知道这是哪里来的吗?
谢谢!
Paul
Hello,
I have a problem with the printpreviewcontrol under windows 7.
It only occures under windows 7 not xp (maybe Vista, i don't know).
I start a new form with the PrintPreviewContol on it and a PrintDocument.
In this case, everything goes perfect.
But when i add the PrintDocument to the PrintPreviewControl it goes wrong (PrintPreviewControl1.Document = PrintDocument1)
Everything on the PrintDocument is empty, there are no variables or other declarations, what so ever.
Error that occures: Attempted to read or write protected memory.
Any idea where this comming from?
Thanks!
Paul
推荐答案
您好
Hello
谢谢您的发帖!我建议将您的问题发布到其中之一
Thank you for your post! I would suggest posting your question in one of the
这篇关于Windows 7下的PrintPreviewControl和PrintDocument问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!