|
Hi all,
Greetings...I'm using range validator for date validation.In that i've channged the Type as 'Date'...but the Maximum Range of the Date is no accessing...can any one tell me how to rectify this...
Babu
|
|
|
|
|
Please tell me what I am doing wrong. I have some problems using Crystal Reports. I have for an example an Access database with a table called "Authors". I connect to the database using the server explorer in VS.NET 2005, I create an OleDbConnection and a DataAdapter. I use the Generate Dataset option from the DataAdapter to generate a Typed DataSet called dataSet1. I load data into the DataSet using the Fill method from the DataAdapter. Then I insert a new Crystal Report Document Using the Wizard and I add as data source From the Project Data/ADO.Net Datasets the dataset1.Authors. I add all the fields from the dataset and I add an Crystal Report Viewer control to the main form. I use the folowing code to set the ReportSource filed of the viewer:
CrystalReport1 cs = new CrystalReport1();
this.crystalReportViewer1.ReportSource = cs;
Ok, when I run the Application the Crystal Report Viewer it lists nothing from the DataSet data. What is wrong?
|
|
|
|
|
Yay I found a solution just by adding one line of code to the code from above:
CrystalReport2 cs = new CrystalReport2();
cs.SetDataSource(this.dataSet11);
this.crystalReportViewer1.ReportSource = cs;
|
|
|
|
|
Thanks for this - much appreciated.
Wish I'd found it two days ago
Glen Harvy
|
|
|
|
|
The EnableAutoDragDrop property for the RichTextBox gives the ability to copy text when dragging. Is there anyway to fix this so that the text is moved instead?
Also, just overriding dragEnter and dragDrop with e.Effect = DragDropEffects.All; gives seemingly flawless DnD behavior without the use of DoDragDrop or having to trace the drop index using the coordinates. How come this method isn't mentioned anywhere?
Any suggestions on how to get DnD working on a RichTextBox would be greatly appreciated. Please and Thank you!
// Mikzi L. Freeman
|
|
|
|
|
Hi there,
can any one guide me, in how to create auto folder when i pass the path for ex: "C:\folder\subfloder\"
i want to create subfolder automatically when i key in this path in parameters. pls do the need ful.
|
|
|
|
|
Directory.CreateDirectory doesn't work ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Please help me!
I want set location of the MainMenu, ToolBar in Design time of WindowForms, norman that set as Top. If can please send mail:
hoatieukiem@yahoo.com
Thanks!
-- modified at 21:37 Tuesday 25th July, 2006
|
|
|
|
|
Can you please explain better what are you trying to do because I don`t understand exactly. Thanks!
|
|
|
|
|
I think you cannot do that in standard mainmenu and toolbar from VS2003.NET.
See this:
http://www.codeproject.com/cs/menu/ToolBarDock.asp
|
|
|
|
|
Hello,
I am developing a web app and trying to use Enterprise Library 2.0. I am using it for logging for now. I achived the logging on a flat file but when I tried to start doing the logging by using a DataBase Listener. I failed.
Here's how I am using it after including all possible references to my web app.
I configured a datasource with following attributes setup:
-Server (my server name)
-Database (my database in my server)
-Integrated Security (I used API.. something, false, true and I even tested after removing this tag aswell).
-user (my user name)
-pwd (my password)
Then I configured a Database Listner and gave the reference of my datasource.
Then I configured a Logging block by adding different categories and then I added reference to my Database listner in categories.
I also tested by adding and removing following in web.config:
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
="" type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" compileroptions="/d:SANDBOX,DEBUG">
----------------
After doing this all when I try to log an entry after specifing the category to the entry and other required attributes. NOTHING HAPPENS in tables I generated after running the script file provided by Best Patterns and Practices team. I couldnt log any data.
Is there anybody who can help me or tell me what I am doing wrong?
|
|
|
|
|
sorry, I copied and pasted the following b4:
type="Microsoft.CSharp.CSharpCodeProvider,
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
compilerOptions="/d:SANDBOX,DEBUG" />
in the last line in codedom tag its /d:TRACE
|
|
|
|
|
I am trying to get each item from a listview and write it to an xml file. For instance lets say i have 2 items in the ListView: http://download.com/download1.zip & http://download.com/download2.zip. below is the code i have but it gives me an error: Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type "System.String'.
XmlNode nodeDload = xmlDoc.DocumentElement;
XmlElement Dload = xmlDoc.CreateElement("Download");
XmlElement dataDload = xmlDoc.CreateElement(i.ToString());
XmlText textDload = xmlDoc.CreateTextNode("");
nodeDload.AppendChild(Dload);
foreach (string item in aUrlView.Items)
{
Dload.AppendChild(dataDload);
dataDload.AppendChild(textDload);
textDload.Value = item;
++i;
}
Example Below
<root>
<download>
<1>http://download.com/download1.zip</1>
<2>http://download.com/download2.zip</2>
</download>
</root>
Could someone help me out with this?
Thanks in advance
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
I have a program where I am importing data from a comma delimited file. The data is from years of user input that was not validated at time of input, therefore some of the data is useless. I have found my way around most of the problems except one. In this file there is a birthday for each customer. If the user inputed the date as "76/00/25", DateTime.Parse will not read it correctly. Should I put this in a try/catch block and set the data to something default ( like 1/1/1900 )?
Thanx in advance.
Jude
|
|
|
|
|
I have done a fair amount of data cleansing and what we usually do is dump the bad data into another file. Then apply human analysis to fix the solution for larger and large portions of data. Hopefully, you will then get to a relatively small set of data. For the final set make best guesses based on weighted importance of the data. (BTW, use nulls instead of defaults when you don't know. Some people born on 1/1/1900 might be offended otherwise)
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Thanx for the response!
Ok, I have another question.
How do I set a DateTime value to null? I tried dtDate = null, but it did not compile.
Also, I am passing this value to a stored procedure and the column can hold a null value, but will the procedure allow that...IOW does it have to be defined as so in the procedure?
Thanx again!
Jude
|
|
|
|
|
Hi i am wanting to read an xml file and load the data into various strings:
<root>
<filename>
<1>First String</1>
<2>Seconed String</2>
</filename>
<fileinfo>
<1>First String</1>
</fileinfo>
</root>
string[] fileName;
string fileInfo;
Could someone point me in the right direction?
Thanks
------------------------------------------------------
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
XmlDocument document = new XmlDocument();
//Load your xml
...
//Then use XPATH
XmlNode node = document.SelectSingleNode("/root/filename/1");
or such
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
thanks alot!
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
And be wise enough to know the difference.
teejayem wrote:
Don't be overcome by evil, but overcome evil with good
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Hello.
Is possible (visual studio 2005, c#) to find hyperlinks in word (.doc) file?
TIA
Regards,
Bojan
|
|
|
|
|
i want to make a copy of one of my existing form including its design view with in that project. i am not able to copy its design view how can i do it please tell me soon.....
|
|
|
|
|
Use the filesystem and not the IDE.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Hi,
I want to compare the performance of the logger with log4net, and the the enterprise logging library by Microsoft.
Can you provide me some example on "enterprise logging library by Microsoft" (framework 2.0)
Thanks !
jayasshc
|
|
|
|
|
They hide those examples in the documentation[^]
Test Drive
The Logging and Instrumentation Application Block has been developed as a result of analyzing common enterprise development challenges and successful solutions to these challenges. However, because each application is unique, you will not find this application block suitable for every application. To evaluate this application block and determine its applicability to your projects, Microsoft suggests you dedicate at least half of a day to explore the application block. The following is a suggested evaluation approach:
1. Download Enterprise Library.
2. Install Enterprise Library and compile all application blocks and tools.
3. Read the "Introduction" and "Scenarios and Goals" sections of the documentation.
4. Compile and run the QuickStart samples, and read through the related "QuickStart Walkthroughs" and "Key Scenarios" sections of the documentation.<br />
5. If the application block looks like a good fit for your application, try implementing a simple use case in your application or in a throw-away prototype application using the application block.
|
|
|
|