把文档中的字颜色设置成白色打印的时候还是打印成黑色了
如题:把文档中的字颜色设置成白色打印的时候还是打印成黑色了System.Drawing.Printing.PrintDocument pd = new System.Drawing.Printing.PrintDocument();
pd.DefaultPageSettings.Color = true;
textControl1.Print(pd);
http://gcdn.gcpowertools.com.cn/forum.php?mod=viewthread&tid=16038&highlight=%B4%F2%D3%A1
本来是要来做续打的,用另外一种方式实现了 那就是搞定了吧。那就好~ 现在还有个问题,怎么用代码设置段落的首行缩进? cyhbsoft 发表于 2017-7-12 20:00
现在还有个问题,怎么用代码设置段落的首行缩进?
TXTextControl.ParagraphFormat.HangingIndent 设置为负值试试 设置了没用,直接报错
抱歉,这个缩进应该用另一个属性 ParagraphFormat .LeftIndent 将这个设置为正值即可解决问题 cyhbsoft 发表于 2017-7-19 09:22
设置了没用,直接报错
这个问题在于设置这个为负值时首先要设置LeftIndent
如下设置即可解决问题
LeftIndent = 300;
HangingIndent = -300;
页:
[1]