Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
| Search | Today's Posts | Mark Forums Read
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 November 14th, 2004, 06:05 PM
Registered User
Join Date: Nov 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling crystal subreport in Visual Basic 6

Hi. I have post this question for a lot of newsgroups out there but i did not receive any response. Anyway here it is:

I have a crystal report which has on demand subreport attached to it which can be called thru a hyperlink, when i am running it in Crystal Report environment, i can click on the hyperlink in the main report to view the subeport.
However when i am calling this main report in visual basic, the hyperlink for subreport is not working.

How can i enable it.
Pls i need it asap.
Here is my code by the way:

CrystalReport1.Connect = "DSQ=ODBCName"
CrystalReport1.ReportFileName = "c:\rptreprt.rpt"

what will i add in order for the main report to call sub report.

Thanks in advance,

Old November 18th, 2004, 07:11 PM
Registered User
Join Date: Nov 2004
Location: , , Canada.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bryannep

i don't know if this will help, but if your subreport is not working, have you tried the .OpenSubreport command.
Old December 3rd, 2004, 06:01 AM
Registered User
Join Date: Dec 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

Hello MJ

It has been a while since u posted this.

Well, just in case ... u culd go to ths link :


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report XI and Visual Basic 6 surendran VB How-To 0 November 14th, 2007 01:38 AM
Visual Basic 5.0 using Crystal Reports JMCHAP1 Beginning VB 6 0 August 21st, 2006 10:38 AM
Crystal Reports and Visual Basic 6 Diego2 VB How-To 0 January 13th, 2005 06:52 PM
Crystal reports 9.0 with Visual Basic 6.0 rahulmoray VB How-To 1 December 8th, 2004 06:22 PM
crystal reports 8.0 in visual basic 5.0 reachshalini VB Components 1 September 30th, 2004 08:18 AM

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