使用VS2005为v8.5报告设置打印机 [英] Setting the printer for v8.5 reports with VS2005

查看:119
本文介绍了使用VS2005为v8.5报告设置打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将VB6项目升级到VS2005,并且在查看器中选择要使用的打印机时遇到问题。原始代码是;


I have upgraded a VB6 project to VS2005 and am having problems selecting the printer to use from the viewer.  The original code was;

CRAXDRT.Report.SelectPrinter(sDriver,sPrinter,sPort)
CRAXDRT.Report.SelectPrinter(sDriver, sPrinter, sPort)

推荐答案

尝试:

Dim 报告 As New ReportDocument()

Dim Report As New ReportDocument()

Report.Load(ReportName)

Report.Load(ReportName)

Report.PrintOptions。 PrinterName = PrinterName

Report.PrintOptions.PrinterName = PrinterName


这篇关于使用VS2005为v8.5报告设置打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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