在vb6中使用.rpt文件 [英] using .rpt file in vb6

查看:203
本文介绍了在vb6中使用.rpt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请向我发送代码以方便地在vb6中使用.rpt文件.

另请注意,我在vb6中使用的是Crystal Report dirrect,但是当我运行该软件时,它会创建临时文件.

到我的emial ID:hotmail.com上的fabricano_inc

Please send me code to use .rpt file in vb6 in easy wa.

Also note that I am using crystal report dirrect in vb6 but when I run the software it create temp file.

to my emial id: fabricano_inc at hotmail.com

推荐答案



长期在vb工作的人....

希望您使用MS-Access作为后端

代码在下面
Hi,

It''s long time man worked in vb....

I hope you are using MS-Access as backend

code is below
report.DiscardSavedData = True
report.Destination = crptToWindow
report.DataFiles(0) = App.Path & "\Inventory.mdb"
report.ReportFileName = App.Path + "\Reports\rptBalanceSheet.rpt"
report.SelectionFormula = "{tblTrn.SNo}=''" & txtPrm.Text & "''"


问候,
thatraja


Regards,
thatraja


这篇关于在vb6中使用.rpt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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