|
-
November 20th, 2003, 12:34 AM
#11
Hi, Mr. Babu. Thanks to reply. I highly appreciate that, really! . I finally solve my problems. My problem is actually not on my parameterfield index, because I'm starting from 1 is correct, in fact if I started from 0, the error message will be "Subscribe out of range!".
My problem is, I can not connect to the server because I use the wrong method. This is the biggest misunderstood of method. To connect to server, I supposed not to use LogOnServer method. This method works like an active connection in ADO, that made only once, and used for many times. That's why I got error message "Server has not been opened yet!" But i must use SetLogOnInfo method. This syntax of the method is like this (for SQL server) :
report.database.tables(1).SetLogOnInfo Servername as string, databasename as string, userid as string, password as string.
Then I can view my report on viewer. I found this method and the explanation from technical books from this site (if I wish anyone would like to download) :
'For Crystal reports 9 and above :
http://support.crystaldecisions.com/...properties.pdf
'For version before 9 :
http://support.crystaldecisions.com/...nnectivity.pdf
Now, Mr. Babu, how is the way to set up some text during the run time. Let's say, I have a text that I must set according to the user's choice (this text will be on the Report header section). For example : if the user choose all branch (from combo box in VB), the text will be printed all branch, if the user choose Surabaya, the text will be printed "Surabaya". How do I set this? Thank You for answering. I do really happy to join this forum with you and all friends around the world. I'm waiting for your reply! Thank You once again!
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
|