Click here to Skip to main content
15,889,751 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

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 & "'"

Regards,
thatraja
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900