Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Logic behind... Something? Pin
Luc Pattyn14-Jul-09 2:39
sitebuilderLuc Pattyn14-Jul-09 2:39 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 9:21
Baeltazor14-Jul-09 9:21 
AnswerRe: Logic behind... Something? Pin
musefan14-Jul-09 1:31
musefan14-Jul-09 1:31 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:35
Baeltazor14-Jul-09 1:35 
Questionc# function for Image Compression Pin
GauravKP14-Jul-09 1:11
professionalGauravKP14-Jul-09 1:11 
AnswerRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 1:14
sitebuilderLuc Pattyn14-Jul-09 1:14 
JokeRe: c# function for Image Compression Pin
musefan14-Jul-09 1:19
musefan14-Jul-09 1:19 
GeneralRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 1:42
sitebuilderLuc Pattyn14-Jul-09 1:42 
GeneralRe: c# function for Image Compression Pin
musefan14-Jul-09 2:42
musefan14-Jul-09 2:42 
GeneralRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 2:44
sitebuilderLuc Pattyn14-Jul-09 2:44 

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.