Wrox Programmer Forums
|
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 December 9th, 2006, 06:37 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6 w/ Crystal Report

I have a VB6 application I am developing for a friend and I have created a report with crystal reports. The report will show in the CRViewer object but I can not get the report to show any data. I have text fields for labeling the information but my database fields will not display data. If I open the report in Crystal I can preview the report with data but can not get VB to import the data.

After I get the report to show something, I would like to know if anyone would have a suggestion on how to specify a certain record to show.

Thanks

Chris Bowles

 
Old December 23rd, 2006, 02:10 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Some possibilities here.

First, let me know which version of CR you are using and what DB?

CHOICE:
1)VB CR4.6 ACCESS
or
2)VB CR(higher) with any Database server like MS-SQL ORACLE...

Assuming as CHOICE#1,
Then, If the data is not seen in the report, may be it depends on SQL Statement which you have referred in the VB code. Try this. Hope it might help. And un-check that check box, report options/property page in the CR editor (save the data in report).

If CHOICE#2,
Then, are you using Stored Procedures? (cursors or temp tables), So make sure the input parameter you are passing to the SP, returns data in the SQL Query analyzer. If you have any formula fields, check its not a problem in the calculation with type miss match. This I have faced some times, where I see the data in the viewer but not when called from VB.

This is not a proper suggestion, but might help you in thinking. In your next post explain bit more clearly with the attempts you made to fix and what choices you are using.

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
crystal report export using vb6 mycha_2003 Pro VB Databases 1 March 29th, 2016 03:04 AM
VB6 with crystal report 10 pritz VB How-To 31 June 27th, 2006 06:23 AM
Crystal Report 4.6 in vb6 alaa_h78 Beginning VB 6 2 November 22nd, 2005 09:31 PM
crystal report and vb6 zaeem VB Databases Basics 0 May 20th, 2005 11:59 AM
Crystal report 9 on VB6 mahanama VB How-To 2 February 1st, 2005 09:11 AM





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