![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设置
brian0031
这个作者很懒,什么都没留下…
展开
-
C#打印设置(二种方法)
方法一:private void toolStripButton7_Click(object sender, EventArgs e){ PrintDialog pDlg = new PrintDialog(); pDlg.AllowSomePages = true;原创 2011-07-25 15:08:51 · 2840 阅读 · 0 评论 -
在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式
在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。解決方法: 在主函数前面加上[STAThread],即:.......[STAThread]static void Main(){....}原创 2012-01-07 13:41:06 · 927 阅读 · 0 评论