C ++如何在CPrintDialog中设置Copies [英] C++ How to set Copies in CPrintDialog

查看:118
本文介绍了C ++如何在CPrintDialog中设置Copies的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我能够找到如何在打印对话框中设置从和到页码,

但是我无法找到如何将副本数设置为1以外的任何其他内容。



这是我尝试过的众多迭代之一:

CPrintDialog dlg(FALSE);

dlg.m_pd.Flags& = ~PD_DISABLEPRINTTOFILE;

dlg.m_pd.Flags& = ~PD_HIDEPRINTTOFILE ;

dlg.m_pd.nCopies = 3; // ---不起作用



if(pApp-> DoPrintDialog(& dlg)== IDOK)

{

}



但是,没什么变化。





如果你可以帮助我,你的额头上有一颗金星。

Matt Orton

I was able to find how to set the From and To page numbers in the Print Dialog,
but I haven't been able to find out how to set the number of copies to anything other then 1.

here is one of the many iterations I have tried:
CPrintDialog dlg(FALSE);
dlg.m_pd.Flags &= ~PD_DISABLEPRINTTOFILE;
dlg.m_pd.Flags &= ~PD_HIDEPRINTTOFILE;
dlg.m_pd.nCopies = 3; // --- doesn't work

if( pApp->DoPrintDialog(&dlg) == IDOK )
{
}

but alas, nothing changes.


I have a gold star for your forehead, if you can help me.
Matt Orton

推荐答案

这里的一些信息: PRINTDLG结构 [ ^ ](参见 nCopies 说明)。
Some info here: PRINTDLG structure[^] (see nCopies explanation).


这篇关于C ++如何在CPrintDialog中设置Copies的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆