For Programmers: Free Programming Magazines  


Home > Archive > MSDN > September 2005 > subreport credential









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author subreport credential
Lilly

2005-09-29, 6:55 pm

Hi,

I am not sure this is the right group I should post my question, but I
really need the help.

I have a main report, and insert a subreport to it. When I run app to
generate report, a log on dialog pop up to ask for database login. There are
some web sites posted code like this:
crConnectionInfo.ServerName = "ServerName";
crConnectionInfo.DatabaseName = "DBName";
crConnectionInfo.UserID = "UserId";
crConnectionInfo.Password = "PassWord";
But in my case, data source is not database, instead, it is a dataset, and
the content of the dataset is runtime filled in. It doesn't have userID and
password either. How am I able to preset the above variables in order to pass
around the logon dialog?

Thanks in advance,
Lilly

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com