|
Hi,
you can decode a date string using DateTime.Parse/ParseExact/TryParse/TryParseExact; you will have to deal with null/DBNull yourself.
you can format a date to a string with ToString(); that holds true for all .NET types
you should not store dates as strings in a database, use the existing database types instead (date, datetime, timestamp). If you do store them as strings anyway, have a look at ISO 8601 for a standard format.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I would use System.DateTime.MinValue or .MaxValue depending on whether I want them sorted to the top or bottom.
if ( f == System.DbBull.Value ) f = System.DateTime.MinValue ;
s = ( f == System.DateTime.MinValue ? "null" : f.ToString() ) ;
|
|
|
|
|
Hi, Has anyone experienced this problem?
i'm using vs.net c# & Report Designer component CRAXDDRT V XI 2
i've added an OleObject in the report page header section by the folowing line
OleObject PicObject = m_Report.Sections[SecNo].AddPictureObject(Application.StartupPath + "\\DefaultLogo.bmp", 0, 0) it's added successfully but after that when i try to change the photo path (Graphic Location) by
PicObject.SetOleLocation("NewPath + "\\AnotherLogo.bmp");
the following error msg appears : 'Access is denied'
I would appreciate your help ...
|
|
|
|
|
U dont have appropriate administrative privileges! Log in as Administrator or its member....
|
|
|
|
|
thanx 4 reply
but i'm actually loging by Administrator
|
|
|
|
|
Hi there,
In Windows form we have a option in the property of the form called 'Opacity' which enables us to set the transparency settings of the form. However, I want that without making the form transperable, only the Buttons should be transperant. So, please tell me guys, which way can I make only the buttons in a form look transperant.
Your help will be appreciated,
Rajdeep.NET
|
|
|
|
|
If you mean, it should show desktop in back then you cant. But you can try this
Transparent Bitmap Buttons with Alpha-Blended Regions in .NET[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I have number and writting on the image.I want to save as(.doc or .xls) number and writting on the images,
how am I do?
|
|
|
|
|
|
None of these links answer the question.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I want to leave char on image not insert writning on image
thenks
|
|
|
|
|
I can't it
for me example code pls
|
|
|
|
|
Tell you're client you're not smart enough for the job, you obviously can't understand a word we're saying.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You'll need to buy an OCR library to do that.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
ohh...what about free Open Office[^], my friend
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
try Open Office[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I want to display the contents of an excel file into my windows form using visual c#. I tried using the binding source option from the the toolbox and creating a data set by giving the link to my excel sheet.
But i am not understanding, how to display the data in my windows form.
plz help me wid a code !!!!!
|
|
|
|
|
According to CP's simple rules[^], you've been broken the 6th one.
but since you're new here, this might be a mistake. So I'll suggest you to read all of 'em first.
Now, come to your question. Here are some results after a quick search.
Opening and Navigating Excel with C#[^]
Export excel data to a Dataset[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
I making a WINDOW APPLICATION USING VISUAL C#. I want to display the contents of an excel file into my windows form using visual c#. in d same way text files are read..
In d form only values should be present and no excel sheet !!
plz help me wid a code !!!!!
modified on Monday, April 6, 2009 7:07 AM
|
|
|
|
|
|
myventsi wrote: Sol1.Data.
what's with all the dots?
Windows uses a backslash as a path separator.
Visual Studio shows solution and project items in its solution pane, they reflect real files and folders.
myventsi wrote: RegFile = new FileInfo("Sol1.Data." + MyCombo.SelectedItem.ToString() + ".mdb");
Bad style. What if nothing was selected in the ComboBox?
Split the line in several lines, compute the filename first, so you can look at it, then call FileInfo.
For the filename, safest approach may be to use an absolute path, something like:
object item=MyCombo.SelectedItem;
if (item!=null) {
string filename=@"C:\myfolder\myproject\Sol1\data\"+item.ToString()+".mdb";
RegFile=...
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
Not sure what it is you want, here are some facts:
- you can only read/write files in existing folders;
- you can create folders using Directory.CreateDirectory (there is no need to test existence first).
- some folders may be "write protected" or "access denied" (more so on Vista).
- there are some "preferred locations" for data files belonging to an app, for data files for a particular user, etc. Have a look at Environment.GetFolderPath(). Don't be surprised if the result depends on the Windows version ("Documents and Settings" on XP became "Users" on Vista).
I tend to use Environment.SpecialFolder.ApplicationData quite a lot.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|