Crystal Reports 8.5 and Visual Basic 6

How to attach crystal reports in visual basic database applications

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

34 Replies - 109806 Views - Last Post: 05 April 2012 - 12:22 AM Rate Topic: ****- 1 Votes

#16 Eyeballs  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-July 08

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 24 July 2008 - 02:25 PM

Hi there. My question is how can someone make changes to many Crystal report designers dynamically, preferably through VB? We have about 200 Crystal Rpt files that are going to have to have their Datasource Locations changed (new Server, although the database name and corresponding Stored Procedure names will be the same). Is it possible to do this thru a VB routine and have the files saved & verified with the new data sources?

Thanks to anyone who knows the answer and is willing to type it in here!
Was This Post Helpful? 0
  • +
  • -

#17 amit0287  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 29-July 08

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 29 July 2008 - 06:10 AM

hi
I am not able to generate crystal reprot in vb 6.0
Iam using ms access2003 database
when i am trying to genrate the report blanl report is generated
even if the database contains the data
the database which i am using is saved in the server machin
Private Sub PRINT_Click()
str1 = "delete from tempslip"
db.Execute str1

str2 = "select * from tempslip"
Set rs1 = db.OpenRecordset(str2)
'Do While Not rs.EOF = False
rs1.AddNew
rs1!emp_name = cmbname.Text
rs1!esic = txtesic.Text
rs1!pfno = txtpfno.Text
rs1!Month = Combo1.Text
rs1!days = txtdays.Text
rs1!basic = txtbasic.Text
rs1!hra = txthra.Text
rs1!conv = txtconv.Text
rs1!education = txtedu.Text
rs1!medical = txtmedical.Text
rs1!other = txtother.Text
rs1!lta = txtlta.Text
rs1!special = txtspecial.Text
rs1!ctc = txtcosttothecompany.Text
rs1!pf = txtpf.Text
rs1!pt = txtpt.Text
rs1!income = txtit.Text
rs1!esicno = txtesicno.Text
rs1!loan = txtloan.Text
rs1!others = txtothers.Text
rs1!deduction = txttotdeduction.Text
rs1!netsalary = txtnetslaary.Text
rs1!Year = Text1.Text
rs1.update
rs1.Close
CrystalReport1.ReportFileName = ""
CrystalReport1.Reset
CrystalReport1.Connect = "\\SERVER2\d\database\pd1.mdb"
CrystalReport1.ReportFileName = App.Path & "\slip.rpt"

' CrystalReport1.DataFiles(0) = App.Path & "\pd.mdb"
'CrystalReport1.ParameterFields(0) = "Param1;Main Report Param;True"
CrystalReport1.Destination = crptToWindow
CrystalReport1.Action = 1
this is the code i am usin

pls help me as soon as possible
Was This Post Helpful? 0
  • +
  • -

#18 tweety0012coo  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 3
  • Joined: 25-June 08

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 06 November 2008 - 08:21 PM

hello....

i want to ask if crystal report 4.2 or 8 or 11 is compatible with MYSQL?

if yes, how can i connect to my database?

your response in highly appreciated...

THANK YOU :)
Was This Post Helpful? 0
  • +
  • -

#19 Amben  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-December 08

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 28 December 2008 - 07:19 AM

View Postkobebryant, on 5 Feb, 2008 - 02:36 AM, said:

wadddddddddduuuuup puto! musta na pare?pwede bang magtanung?salamat!!!
si eldrin yaos may sarili ka pa forum dito ha astig hehehe!

musta bro?astig may sarili ka pa forum panel ha hehehe!


are you guys a Pinoy?

Wow, nice one, it helps a lot to some students who are doing their thesis project.

Nice one....
Was This Post Helpful? 0
  • +
  • -

#20 Amben  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-December 08

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 28 December 2008 - 07:26 AM

View Posttweety0012coo, on 6 Nov, 2008 - 07:21 PM, said:

hello....

i want to ask if crystal report 4.2 or 8 or 11 is compatible with MYSQL?

if yes, how can i connect to my database?

your response in highly appreciated...

THANK YOU :)



I hope it is possible, coz i'm also doing my project with that PL and Database

but the problem is that, my vb 6.0 has no Crystal Report, anyway, where can i download a free crystal report 4.2 or 8 or whatever version for me to try if it is possible to do that thing?

plz send me an email if you do know those thing @ LegendaryKnight@rocketmail.com.

It would be a great help if anyone knows about it.
Was This Post Helpful? 0
  • +
  • -

#21 hamsakm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-February 09

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 04 February 2009 - 11:57 PM

hello,
Please give me the link of Crystal Report 8.5 and serial key with reg.code.
Give it to my email.My E-mail ID:hamsakm@gmail.com
Was This Post Helpful? 0
  • +
  • -

#22 darkoragon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-February 09

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 18 February 2009 - 11:48 AM

View Postjeff_sibal, on 9 Apr, 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$

hello.. i have something to ask.. i want your reply asap? how to cnect vb to crystal report? :)




[code]
Was This Post Helpful? 0
  • +
  • -

#23 darmawan6801  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-February 09

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 21 February 2009 - 12:57 AM

View Postjeff_sibal, on 9 Apr, 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$

Was This Post Helpful? 0
  • +
  • -

#24 rkhunter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 03-March 09

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 03 March 2009 - 12:22 AM

View Postjeff_sibal, on 9 Apr, 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$


Hi Jepoy,

I'm new from VB6 and im planning now to use CR8.5 can you help where to download CR8.5 developer edition? any tips?

thanks
rk
Was This Post Helpful? 0
  • +
  • -

#25 cry  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-July 09

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 23 July 2009 - 01:05 AM

View Postjeff_sibal, on 9 Apr, 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$



View Postcry said:

hi my problem is how to connect the seagate crystal report in vb6 and i have another problem i can't connect the microsoft access in vb6, displaying in listview can you help me

cry

Was This Post Helpful? 0
  • +
  • -

#26 ashish_s0102  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 02-August 09

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 02 August 2009 - 12:10 PM

View Postjeff_sibal, on 9 Apr, 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$

Was This Post Helpful? 0
  • +
  • -

#27 Guest_vinay*


Reputation:

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 09 February 2010 - 01:26 AM

View Postjeff_sibal, on 09 April 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$

Was This Post Helpful? 0

#28 Guest_VarZac*


Reputation:

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 19 February 2010 - 02:23 AM

Hi,

i developing a app using VB6, CrystalReport 8.5 and MySql Server5..
I am facing problem in connecting CrystalReport with MySql..
your help will be highly appreciated..

Thanks..

View Postjeff_sibal, on 09 April 2007 - 10:44 PM, said:

Hi guys! If you have problems with crystal reports 8.5 and visual basic 6, please send me your message, I'll see if I could possibly HELP!

Thanx!


Jepoy
V@$

Was This Post Helpful? 0

#29 Guest_EddiRae*


Reputation:

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 22 February 2010 - 09:59 AM

Hello Jeff,
I am trying to use the the Report Designer in VB6. It is not showing up in the Add-In window. When I look in the Add-In Manager, I am not seeing it. How do I get this added?

Thanks!!
Eddi Rae
Was This Post Helpful? 0

#30 jeff_sibal  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 24
  • Joined: 02-April 07

Re: Crystal Reports 8.5 and Visual Basic 6

Posted 08 November 2010 - 10:39 PM

Hi selvakumarkrishnasamy,

To run a Crystal report in your VB6 application, first you need to include (check) the Crystal Reports in your VB 6 Components (located in the Designer tab as you open the Components : Project\Components\Designer)

then add the crystal reports "Object" into your "form" from your VB6 components panel (located in the left side portion)

create a command button (Command1) or you may use the Edit Menu of VB6 for a better Report generation interface.

then try this code:
Public Sub Command1_Click()
frmYourFormName.NameofCyrstalreportObject.SelectionFormula = ""
            frmYourFormName.NameofCyrstalreportObject.SelectionFormula = "{nameofquery_in_msacess.fieldname}= '" & tempnameto_filter & "'"
            frmYourFormName.NameofCyrstalreportObject.ReportFileName = App.Path & "\yourDirectory\NameofYourCR_Report.rpt"
frmYourFormName.NameofCyrstalreportObject.WindowShowPrintSetupBtn = True
frmYourFormName.NameofCyrstalreportObject.WindowShowRefreshBtn = True
frmYourFormName.NameofCyrstalreportObject.WindowState = crptMaximized
frmYourFormName.NameofCyrstalreportObject.Action = 1
End Sub


Note:

Line 1 is a standard starting syntax

Line 2 can be use if you want to filter a specific group of item or field in your report, using this line the VB 6will filter your desired item accordingly.

Line 3 is the report path

Line 4 will include a Printer Setting button in your CR report

Line 5 will include a refresh button in your CR report. It is useful to get the real time values/items/fields in your report

Line 6 will make your report into maximum view

Line 7 triggers the report generation


Happy Programming!


Jeff Sibal
Programmer

This post has been edited by macosxnerd101: 09 November 2010 - 07:10 AM
Reason for edit:: Added code tags.

Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3