Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 30th, 2007, 03:01 AM
Registered User
 
Join Date: May 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nishab345
Default connect VB6 with Cystal report9

Hai,
please tell me how do i connect Visual Basic6 program with Crystal Report9. I made the report in Crystal report, but can't connect with the VB project. pls tell me which is the component to connect and how is the coding, and how we can apply formula selection like this.

I hope you can give me some sample codings for this as soon as possible.

I will be thankful to you

Nishab

 
Old May 30th, 2007, 11:51 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It has something like "Crystal Reports .Net Active X Designer Design and Runtime Library"

refer to it in the project reference... and use the API like this.. (below)
(just some hints)

Dim c As New CRAXDDRT20.Application
Dim d As Report
Dim e As GroupNameFieldDefinition

d = c.OpenReport("c:\c.rpt")

e = d.GroupNameFields(0)
e.GroupNameConditionFormula

d.FormulaFields(0).Value

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Alter Crystal Report9.0 DSN in VB6.0 Nii Crystal Reports 0 July 12th, 2007 06:25 AM
Any new solution to connect AS/400 from VB6 viethan505 Other Programming Languages 0 August 23rd, 2006 09:37 PM
New solution to connect AS/400 from VB6 viethan505 SQL Server 2000 0 August 22nd, 2006 04:25 AM
Crystal report9 and VB6 vaneza VB How-To 1 June 29th, 2005 11:34 PM
SQL Server connect to VB6 okinokiyo SQL Server 2000 3 June 7th, 2004 11:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.