Do you think, when you've mastered it, that you can encapsulate it all in a single web control and write a CP article about it? kthxbye :)
BugMeNotFTW
Posts
-
Banking System -
ReportViewer - Changing the Local ReportHi, I have a number of reports, one for each question on a questionnaire. They're all supposed to be pie charts and show the results as a "Yes"/"No" split. Rather than write a separate report for each question, I'd like to create one report called (for example), "generic.rdlc". I would then load this report and dynamically set a data-source to it. All I'd then have to do is change or set the column name to report on. Can anyone suggest a way of doing this? The report .rdlc format appears to be a basic XML file and I can find where to set the column, so I guess I could write the column name to the file before I load it. Is that really the best way to do it though? Is there not an API method I can use to "poke" a value into the report? Incidentally, I'd also like to set the name of the report so I can title it appropriately - again, surely I shouldn't have to write this value to the report file directly? Thanks for any help offered :)
-
General Approach to DropDownListsHi, I've just done a basic "survey" web page which lists a number of questions for users to fill in and submit - each survey is then saved to a SQL database in the "Survey" table. At the moment, the questions are multiple choice, so the answers are yes/no, or strings of text. One of the question's answers is some 30 characters long and virtually all the answers can be chosen from DropDownList controls. It all works fine as it it is but as you can imagine, while I can store the strings of text in each record it seems that a more efficient way would be to store the index of the choice from the DropDownList so I'd be able to use INTs instead of NTEXT. My problem is this: should I implement a table for each question on the database consisting of a string and int value and bind the web controls on page load; or should I have some sort of enum type for each question with a DropDownList. If the latter, how can I associate a string of text with an int? I can't create a set of enums containing text can I? Thanks for any help :)
-
Application.DoEvents(); throwing System.IO.FileNotFoundException ?Strange but adding a app.config file solved the problem :thumbsup:
modified on Sunday, June 27, 2010 12:47 PM
-
Application.DoEvents(); throwing System.IO.FileNotFoundException ?Ive got the webbrowser control navigating in a foreach loop which doesn't contain any IO yet i get the following exception Exception:Thrown: "Could not find file 'C:\Users\Raymond\Desktop\TestProgram\bin\Debug\TestProgram.vshost.exe.config'." (System.IO.FileNotFoundException) A System.IO.FileNotFoundException was thrown: "Could not find file 'C:\Users\Raymond\Desktop\TestProgram\bin\Debug\TestProgram.vshost.exe.config'."
foreach (string ValueName in Regkey.GetValueNames())
{
Browser.Navigate("http://www.google.com");
System.DateTime ThisMoment = System.DateTime.Now;
System.TimeSpan duration = new System.TimeSpan(0, 0, 0, 0, 10000);
System.DateTime AfterWards = ThisMoment.Add(duration);while (Loaded != true || AfterWards >= ThisMoment) { Application.DoEvents(); Thread.Sleep(50); } }
with Browser.document completed set to the function below
private void BrowserCallback(object sender, WebBrowserDocumentCompletedEventArgs e)
{
Loaded = true;
}No IO is taking place and the path in the exception is correct it even happens whenh im not debuging :confused: Is there any way to fix this or get the foreach loop to wait until Browser.documentcompleted is fired without using a delay ?