By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

transfer report made in vb6 to vb.net 2008

P: 3
hi,
I am transferring a project that I created in vb6 to vb.net 2008.
I use " sqlserver 2005 standard" and all my reports where made using stored procedures with parameters.
the program used to create the reports is Cristal Reports 9.
the window 7 that I use with the vb.net is in another computer with the name of "DOVHP".
The name of the old server is "Home with userid "sa" and The name of the database is "MALA2"
The new name of the server is "dovHP".
I restored the database to the computer DovHP and for some reason my sql server 2005 standard is working as sqlexpress.

The connection path changed from ".home" to .dovhp/sqlexpress.
after importing the report into the crystal report viewer I have to insert a script like the one in vb6:

Expand|Select|Wrap|Line Numbers
  1. Dim Report As New crList
  2. Private Sub Form_Load()
  3. CRViewer91.ReportSource = Report
  4. Report.DiscardSavedData
  5. Report.EnableParameterPrompting = False
  6. Report.ParameterFields(1).AddCurrentValue vinum
  7. CRViewer91.ViewReport
here I send a parameter ViNum

I am looking for help to translate this script to a vb.net script

thanks

Dov
Jan 13 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.