|
-
Mar 31st, 2007, 08:49 AM
#1
Thread Starter
Member
-
Mar 31st, 2007, 09:23 AM
#2
Re: How to set database location via code in Crystal Report XI....?
I always make crystal report in the VB 6.0.What are you using the DSN or connection string?
-
Mar 31st, 2007, 09:45 AM
#3
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
Shakti,
I am not using any DSN or conenection string...
I am using the " .Database.SetDataSource " prop to locate the MDB file via code..
I used the Report Designer IDE in the Crystal Report 11 product (not in VB6).
What do i do ??
Awaiting status....
-
Mar 31st, 2007, 10:21 AM
#4
Re: How to set database location via code in Crystal Report XI....?
I am not using any DSN or conenection string...
I am asking about the project what are using in the project.??
-
Mar 31st, 2007, 10:58 AM
#5
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
which project type r u refering to....VB 6 or CR11 ???
-
Mar 31st, 2007, 02:50 PM
#6
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
Shakti, i told u that i have used the Report Designer IDE in the Business Objects product: Crystal Report 11 Dev Ed. And then saved my reports as .RPT files
And i have written some code. It displays fine.
But just before displaying, it pops up the "connection manager" for locating the .mdb file. I think becoz its not being able to find it itself.
Now pls follow the 4 line code snippet, i have shown above and tell me what is wrong....Is it something to do with the second code line....??
Awaiting really urgent reply....
-
Apr 1st, 2007, 11:16 PM
#7
Re: How to set database location via code in Crystal Report XI....?
Are you running our project using the DSN??, for connection the database
-
Apr 2nd, 2007, 05:06 AM
#8
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
no Shakti..i am not using any DSN thing....
I just followed ur VB6 Code Bank stuff and even there, u have not mentioned any DSN stuff.....
Pleeaassseee yaaarr Messenger par aajaa..its too urgent...!
-
Apr 2nd, 2007, 06:49 AM
#9
Re: How to set database location via code in Crystal Report XI....?
Read the first post again. In the Crystal report tutorial
-
Apr 2nd, 2007, 08:46 AM
#10
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
Shakti...I have finally been able to locate the 2 specific sections of ur code snippets in the VBFOrums Code Bank.
I found these two sections and i think this is wat ur referring to that relates to my case:
10) Database connection
1) Add Dsn run Time (at bottom of site)
I wanted to know that, will my report work properly if i JUST use ONLY the point (10) code snippet along with my remaining CR 11 coding which already exists ???
NOTE I am not taking into account -->
" 1) Add Dsn run Time (at bottom of site) " topic above.
-
Apr 2nd, 2007, 09:51 AM
#11
Re: How to set database location via code in Crystal Report XI....?
Check out this thread which asked the same question.
http://www.vbforums.com/showthread.php?t=455123
-
Apr 2nd, 2007, 03:35 PM
#12
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
brucevde...pls pls help me out...i am really not been able to understand the code for the links that u have provided ..
This issue is for generating reports at the destination PC, where the CR 11 product is not installed. I have designed my reports in CR 11 product using the Report Designer IDE(not the standard wizard). And have saved it as .RPT extension.
My issue is that, everything is fine with my reports.
They are generated, using user selected values from the vb form. I am passing respective sql statements using the .SQLQueryString property for querying records onto the report...fine!
I have even packed in the merge modules as needed. BUT...
At the desitnation PC, its asking for database (.mdb) file by popping up the CONNECTION MANAGER dialog box. And when i select that .MDB file, the report gets displayed perfectly also.
Now..why is this MANAGER window comming, i think becoz, i created a new ACCESS coonnection in CR 11 product..
I am sending u my code of a single form that would generate a report at run time via the FORM_LOAD( ) event. NOTE: THere is no CRViewer control attched nor is any references embedded. Please please modify the code so that this MANAGER windows stops comming....This window is torcherring me now..hahaha..Its simpl ecode for u. There is no syntax error with my code..i have checked that. Just add that code segment which will provide standalone database support for a .mdb file.
I will also be going thru ur modified code in the form and may need to ask u somethings to clear my doubts....Ur help is definately appreciated by me !!
I am attching 2 versions of the same code, a txt version and a frm version.
Please add the standalone db connection stuff and resend it back to me for validation.
Awaiting ur response urgently.
Last edited by intellogo; Apr 3rd, 2007 at 10:11 AM.
Regards,
intellogo
-
Apr 3rd, 2007, 08:40 AM
#13
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
SHAKTI..AND BRUCEVDE.....wherer the replies.....its urgent pls assist me guys..
-
Apr 3rd, 2007, 09:48 AM
#14
Frenzied Member
Re: How to set database location via code in Crystal Report XI....?
Not trying to be a jerk but I am sure these people have jobs of thier own to work on. You can't expect them to be constantly helping you instantaneously.
-
Apr 3rd, 2007, 10:00 AM
#15
Thread Starter
Member
Re: How to set database location via code in Crystal Report XI....?
Hey Besoup...now u have to just pull me out of this rut in CR...
come on man...can u help me atleast..please.....???
-
Apr 3rd, 2007, 10:05 AM
#16
Re: How to set database location via code in Crystal Report XI....?
Please add the standalone db connection stuff and resend it back to me for validation.
The samples/links posted already have the code you need. I don't mind helping but I won't write the program for you.
Look at the code in Post #38 from the Thread I posted earlier.
-
Apr 3rd, 2007, 10:07 AM
#17
Frenzied Member
Re: How to set database location via code in Crystal Report XI....?
Bruce and Shakti supplied you with the links... You need to look at them and understand them. They are here to help, not write the program for you.
-
Apr 3rd, 2007, 12:53 PM
#18
Thread Starter
Member
Yet to test sorry...for a blank one..
Pls bare with me ..this was a mistake to click a blank one..
Last edited by intellogo; Apr 3rd, 2007 at 12:57 PM.
Regards,
intellogo
-
Apr 4th, 2007, 10:58 AM
#19
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|