PC Review


Reply
Thread Tools Rate Thread

Crystal report with Application variables

 
 
Karine Proot
Guest
Posts: n/a
 
      16th Feb 2004
Hello,

I would like to use crystal report .NET component. My first problem comes
when I try to specify the data source.

The server, database, userID and password are application variables. How
do I tell the report ?

Karine


 
Reply With Quote
 
 
 
 
Karine Proot
Guest
Posts: n/a
 
      16th Feb 2004
[Sorry, I don't remember which adress was set up for msdn support...]

Hello,

I would like to use crystal report .NET component. My first problem comes
when I try to specify the data source.

The server, database, userID and password are application variables. How
do I tell the report ?

Karine


 
Reply With Quote
 
Gorm
Guest
Posts: n/a
 
      16th Feb 2004
Are you looking for something like this? Change the strings with the info
from the Application hash.
TableLogOnInfo logonInfo = report.Database.Tables[0].LogOnInfo;


logonInfo.ConnectionInfo.ServerName = "<server>";

logonInfo.ConnectionInfo.UserID = "<user>";

logonInfo.ConnectionInfo.Password = "<password>";

logonInfo.ConnectionInfo.DatabaseName = "<databasename>";

report.Database.Tables[0].ApplyLogOnInfo(logonInfo


"Karine Proot" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello,
>
> I would like to use crystal report .NET component. My first problem

comes
> when I try to specify the data source.
>
> The server, database, userID and password are application variables.

How
> do I tell the report ?
>
> Karine
>
>



 
Reply With Quote
 
Karine Proot
Guest
Posts: n/a
 
      16th Feb 2004
Great, this is exactly what I needed, and a good start to search further
info. Thanks.

> Are you looking for something like this? Change the strings with the info
> from the Application hash.
> TableLogOnInfo logonInfo = report.Database.Tables[0].LogOnInfo;
>
>
> logonInfo.ConnectionInfo.ServerName = "<server>";
>
> logonInfo.ConnectionInfo.UserID = "<user>";
>
> logonInfo.ConnectionInfo.Password = "<password>";
>
> logonInfo.ConnectionInfo.DatabaseName = "<databasename>";
>
> report.Database.Tables[0].ApplyLogOnInfo(logonInfo
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report 9 variables Franck Microsoft Dot NET 2 16th Oct 2007 06:10 AM
Web Application with Crystal Report =?Utf-8?B?d3J5dGF0?= Microsoft ASP .NET 5 8th Apr 2005 10:47 AM
Re: Crystal Report in Web Application Ignacio Machin \( .NET/ C# MVP \) Microsoft Dot NET Framework 0 25th Aug 2004 01:53 PM
Crystal Report -Web Application =?Utf-8?B?QmFyZW4=?= Microsoft ASP .NET 1 8th Jun 2004 06:51 PM
Crystal Report in C# Application =?Utf-8?B?QmVsZWU=?= Microsoft C# .NET 2 15th Mar 2004 02:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 AM.