Crystal Report:如何在printoption中更改papersource [英] Crystal Report: How to change papersource in printoption

查看:61
本文介绍了Crystal Report:如何在printoption中更改papersource的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个应用程序,将数据从数据库导出为pdf并打印报告


我已经选择更改打印机纸张来源


但是papersource选项仅接受"auto"选项。但是没有任何其他选项


即时通讯使用VS2005和水晶报告XI发布2


当我选择任何其他选项时[请参阅下面的代码]错误


objReport.PrintOptions.PaperSource = CrystalDecisions。[Shared] .PaperSource.Manual



错误::


抛出运行时异常:System.Runtime.InteropServices.COMException - 索引无效。 (HRESULT异常:0x8002000B(DISP_E_BADINDEX))


任何建议

解决方案

< blockquote>已移至Crystal Reports论坛


Hi,

i have created an application that will export the data to pdf from database and print the report

i have given an option to change printer paper source

but the papersource option is accepting only "auto" but not any other options

i m using VS2005 and crystal reports XI release 2

when i select any other options [see bellow code] its throwin an error

objReport.PrintOptions.PaperSource = CrystalDecisions.[Shared].PaperSource.Manual

 

ERROR::

Run-time exception thrown : System.Runtime.InteropServices.COMException - Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))

Any suggestions

解决方案

Moved to Crystal Reports forum


这篇关于Crystal Report:如何在printoption中更改papersource的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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