Click here to Skip to main content
15,892,643 members
Home / Discussions / C#
   

C#

 
AnswerRe: return string PinPopular
Luc Pattyn14-Jul-09 5:42
sitebuilderLuc Pattyn14-Jul-09 5:42 
GeneralRe: return string Pin
AndyInUK14-Jul-09 6:19
AndyInUK14-Jul-09 6:19 
GeneralRe: return string Pin
Luc Pattyn14-Jul-09 6:27
sitebuilderLuc Pattyn14-Jul-09 6:27 
GeneralRe: return string Pin
musefan14-Jul-09 7:10
musefan14-Jul-09 7:10 
GeneralRe: return string Pin
Joe Woodbury14-Jul-09 6:48
professionalJoe Woodbury14-Jul-09 6:48 
GeneralRe: return string Pin
musefan14-Jul-09 6:57
musefan14-Jul-09 6:57 
GeneralRe: return string Pin
Luc Pattyn14-Jul-09 7:04
sitebuilderLuc Pattyn14-Jul-09 7:04 
GeneralRe: return string [modified] Pin
Joe Woodbury14-Jul-09 7:07
professionalJoe Woodbury14-Jul-09 7:07 
GeneralRe: return string Pin
AndyInUK15-Jul-09 5:20
AndyInUK15-Jul-09 5:20 
GeneralRe: return string Pin
Joe Woodbury15-Jul-09 5:35
professionalJoe Woodbury15-Jul-09 5:35 
JokeRe: return string Pin
musefan14-Jul-09 7:18
musefan14-Jul-09 7:18 
GeneralRe: return string Pin
Luc Pattyn14-Jul-09 7:45
sitebuilderLuc Pattyn14-Jul-09 7:45 
AnswerRe: return string Pin
sskset14-Jul-09 7:52
sskset14-Jul-09 7:52 
Questionregarding grab image from mobile camera?? Pin
Tridip Bhattacharjee14-Jul-09 2:34
professionalTridip Bhattacharjee14-Jul-09 2:34 
AnswerRe: regarding grab image from mobile camera?? Pin
DoctorMick14-Jul-09 5:19
DoctorMick14-Jul-09 5:19 
AnswerRe: regarding grab image from mobile camera?? Pin
Simon P Stevens14-Jul-09 5:25
Simon P Stevens14-Jul-09 5:25 
AnswerRe: regarding grab image from mobile camera?? Pin
Giorgi Dalakishvili14-Jul-09 6:18
mentorGiorgi Dalakishvili14-Jul-09 6:18 
QuestionLogin Problem with CrystalReports Pin
Narendra Reddy Vajrala14-Jul-09 1:59
Narendra Reddy Vajrala14-Jul-09 1:59 
Hi Experts,

In my VisulaStudio2008 c#.net windows Apllication i have a crystalReport(Main) it have 5 subreports.
i did this report in my local machine so i gave datasource, database name and other credentials i set as local only
but from coding i set database login details dynamically to get data from required source
my code is like this

ShiftSummaryReport  report = new ShiftSummaryReport(); <br />
ReportDocument crSubreportDoc; <br />
Sections crSections; <br />
ReportObjects crReportObjects; <br />
SubreportObject crSubreportObject; <br />
<br />
report.SetDataSource(shiftSummaryDataset.Tables[0]);<br />
report.SetDatabaseLogon(user, password, server, database);<br />
crSections = report.ReportDefinition.Sections;<br />
foreach (Section crsection in crSections) <br />
{<br />
crReportObjects = crsection.ReportObjects;<br />
foreach (ReportObject crreportobject in crReportObjects) <br />
{<br />
if (crreportobject.Kind == ReportObjectKind.SubreportObject) <br />
{<br />
crSubreportObject = (SubreportObject)crreportobject; <br />
crSubreportDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);<br />
crSubreportDoc.SetDatabaseLogon(user, password, server, database);<br />
}<br />
}<br />
}

i kept debug and checked, values coming to those variables and executing fine.
but still it is asking for database login.
how can i solve this?
please help me out


Thanks In Advance
--Naren
QuestionLogic behind... Something? Pin
Baeltazor14-Jul-09 1:18
Baeltazor14-Jul-09 1:18 
AnswerRe: Logic behind... Something? PinPopular
Luc Pattyn14-Jul-09 1:27
sitebuilderLuc Pattyn14-Jul-09 1:27 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:31
Baeltazor14-Jul-09 1:31 
GeneralRe: Logic behind... Something? Pin
Rajesh R Subramanian14-Jul-09 1:49
professionalRajesh R Subramanian14-Jul-09 1:49 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:51
Baeltazor14-Jul-09 1:51 
GeneralRe: Logic behind... Something? Pin
Luc Pattyn14-Jul-09 2:11
sitebuilderLuc Pattyn14-Jul-09 2:11 
GeneralRe: Logic behind... Something? Pin
OriginalGriff14-Jul-09 2:13
mveOriginalGriff14-Jul-09 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.