Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
tomwilk
Posts: 6
Registered: 04-07-2009
0

Help with passing MAS login to a custom Crystal Report not in MAS

I was wondering if anyone has information on passing the MAS ODBC connection information to a custom Crystal Report called within VB.NET 2010? See the sample code below:

 

Dim connCR As ConnectionInfo = New ConnectionInfo

 

connCR.ServerName = MASConnString   -   'DSN=SOTAMAS90

connCR.DatabaseName = MASCompany  -   'ABC

connCR.UserID = MAS90UserName  -   'rmd

connCR.Password = MAS90PassWord  -  'password

 

or can we just feed the entire ODBC connection string to the ServerName property like so:

 

connCR.ServerName ="DSN=SOTAMAS90; UID=" & MAS90UserName &  "; PWD=" & MAS90PassWord & "; Company=" & MASCompany

 

Thanks

 

Tom

 

Sage MAS Partner
tomwilk
Posts: 6
Registered: 04-07-2009
0

Re: Help with passing MAS login to a custom Crystal Report not in MAS

The second option works just fine. You don't get the Providex ODBC login prompt.