Re: How to create DSR so can imbed it in my VB6 exe ?
- From: "Gary" <Fake@xxxxxxxx>
- Date: Tue, 14 Oct 2008 08:50:10 -0700
Thanks Rob, that did it just fine.
Now I can at least work with it.
I have tried to do a simple 'test', following an example I found on a forum.
But I encounter an error when I try to establish a recordset
'Using CDO -----------------------------------------------------------------
' CDO is CR's version of a recordset. Load all your data to an
' Array and pass the array to Crystal
Set cdoRowset = New CrystalDataObject.CrystalComObject
I get "User Defined type not defined".
The instructions say to load the Reference "Crystal Data Objects".
But, with CRXIR2, that file is NOT available to me.
I have tried several of the other files, but it just will not resolve.
Another approach in this example is to use ADO.
So the code the use that is
'Using ADO -----------------------------------------------------------------
Set rsAdo = cmdAdo.Execute 'this has executed my dynamic select statement
Report.Database.SetDataSource rsAdo, 1, 1
But I get "subscript out of range" message with this approach.
Anything you can do to help me out here?
Once I at least get the data, then I have to figure out how to programmatically insert the data into
my report, so I can change the font/size/color depending on the data retrieved.
That's another hurdle, I expect.
Thanks
"Rob Blackmore" <rob@xxxxxxxxxxxxxxxx> wrote in message news:9E54A13A-761B-455F-894A-677ADB6A2F0A@xxxxxxxxxxxxxxxx
Hi,
No, add a reference to Crystal Reports ActiveX Designer 11.5 and then you should get Crystal Reports 11.5 on the add menu of your project context menu within VB6.
Kind regards
Rob
"Gary" <Fake@xxxxxxxx> wrote in message news:%236M$ueJLJHA.5972@xxxxxxxxxxxxxxxxxxxxxxxHmmmm... I am using V11R2.
Is that going to be a problem ?
If so, how do I get 8.5, so I can do this?
Thanks
"Rob Blackmore" <rob@xxxxxxxxxxxxxxxx> wrote in message news:E051DCA9-2F25-4115-B842-F2193CBD0AF6@xxxxxxxxxxxxxxxxWhat version of Crystal are you using?
With 8.5 and VB6 you can just add a new report from within the VB IDE which will create a DSR and will be included in the compiled application.
Kind regards
Rob
"Gary" <Fake@xxxxxxxx> wrote in message news:2145BA33-3E6B-4592-8411-EDDA48B78031@xxxxxxxxxxxxxxxxHi.
I am a VIRGIN with respect to Crystal Reports.
I have a VB6 application, which has several reports.
I have written them all, using a 3rd party product (PrintPreview), which does a few things....
It does not require any format or template file... I just format a page by placing images/text on it in specified locations,
using specified fonts, italics, bold, etc., and colors, depending on the data.
It does not require any calls to any database. I do all the database calls, and place the data as I wish.
It has the ability to Preview a report, and the Users can then EXPORT the report to one of several different formats (RTF, PDF.etc)
This is all GOOD.
But... it throws an error message running under Vista. This is BAD.
After almost a year back and forth with the developer for PrintPreview, he obviously has no intention of fixing this problem.
I have searched high and low for any alternative, but can't find anything.
So I am now looking at Crystal Reports.
It certainly will work under Vista.
It has a report Preview ability.
It can export to a variety of file formats.
But... it requires a template (.rpt file),
And, it wants to do the database calls.
But, I understand I could create/use .DSR files, which I can imbed within my application.
I do NOT want to have to distribute .rpt files to my clients, nor do they want to distribute them to their clients (re-selling the app).
So... how do I create .dsr files ?
How do I get to include/imbed them in my .exe ?
Can I somehow avoid having CR do the database calls (Sub-Report) ?
Is there anything I have missed ?
Sorry... but I really am a NEOPHYTE in this regard.
Thanks for any and ALL help.
.
- Follow-Ups:
- Re: How to create DSR so can imbed it in my VB6 exe ?
- From: Rob Blackmore
- Re: How to create DSR so can imbed it in my VB6 exe ?
- References:
- How to create DSR so can imbed it in my VB6 exe ?
- From: Gary
- Re: How to create DSR so can imbed it in my VB6 exe ?
- From: Rob Blackmore
- Re: How to create DSR so can imbed it in my VB6 exe ?
- From: Gary
- Re: How to create DSR so can imbed it in my VB6 exe ?
- From: Rob Blackmore
- How to create DSR so can imbed it in my VB6 exe ?
- Prev by Date: Re: How to create DSR so can imbed it in my VB6 exe ?
- Next by Date: Crystal Reports Contants List
- Previous by thread: Re: How to create DSR so can imbed it in my VB6 exe ?
- Next by thread: Re: How to create DSR so can imbed it in my VB6 exe ?
- Index(es):
Relevant Pages
|