Crystal Report:如何在printoption中更改papersource [英] Crystal Report: How to change papersource in printoption
问题描述
我创建了一个应用程序,将数据从数据库导出为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屋!