Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to send commands to a running application from the command line? Pin
Ted On The Net3-Mar-10 0:13
Ted On The Net3-Mar-10 0:13 
GeneralRe: How to send commands to a running application from the command line? Pin
Eddy Vluggen3-Mar-10 0:30
professionalEddy Vluggen3-Mar-10 0:30 
AnswerRe: How to send commands to a running application from the command line? Pin
OriginalGriff2-Mar-10 23:42
mveOriginalGriff2-Mar-10 23:42 
GeneralRe: How to send commands to a running application from the command line? Pin
Ted On The Net2-Mar-10 23:44
Ted On The Net2-Mar-10 23:44 
AnswerRe: How to send commands to a running application from the command line? Pin
PIEBALDconsult3-Mar-10 3:51
mvePIEBALDconsult3-Mar-10 3:51 
Questioncreate word file Pin
Milind Panchal2-Mar-10 22:33
Milind Panchal2-Mar-10 22:33 
AnswerRe: create word file Pin
Eddy Vluggen2-Mar-10 23:41
professionalEddy Vluggen2-Mar-10 23:41 
QuestionUpdate Cell Value into Excel Cell like 2009.03 and it become 2009.3 Pin
pankaj.calm2-Mar-10 22:17
professionalpankaj.calm2-Mar-10 22:17 
Hi,

I am updating a Excel Worksheet cell value to 2009.03 and it become change to 2009.3.

I tried may ways to solve the issue but value always changed to "2009.3" instead of "2009.03" on Server. It is working on my system but not on Win XP 2003 Server System.

I used to set excel cell NumberFormat to "@", "0.00", "####.##"
and even tried to concatenated "'" before value but result not come.
The excel file is of 2007 format(.xlsx).
<u>>My Code is</u>
Microsoft.Office.Interop.Excel.Workbook WorkBook = null;
Microsoft.Office.Interop.Excel.Worksheet Sheet = null;
WorkBook = Utility.GetWorkbook2007(templateFileWPath);
Sheet = (Microsoft.Office.Interop.Excel.Worksheet)WorkBook.Worksheets[1];
Microsoft.Office.Interop.Excel.Range TPCellRange = (Microsoft.Office.Interop.Excel.Range)Sheet.Cells[this.GetRowIndex(Sheet, this.CellAddress), this.GetColumnIndex(Sheet, this.CellAddress)];
TPCellRange.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault,"2009.03");

or also tried
CellValueRange.NumberFormat = "@";
CellValueRange.set_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault, "2009.03");

plz reply me if any solution is possible

Thanks @ regards
QuestionRe: Update Cell Value into Excel Cell like 2009.03 and it become 2009.3 Pin
Eddy Vluggen3-Mar-10 0:55
professionalEddy Vluggen3-Mar-10 0:55 
AnswerRe: Update Cell Value into Excel Cell like 2009.03 and it become 2009.3 Pin
pankaj.calm3-Mar-10 0:59
professionalpankaj.calm3-Mar-10 0:59 
QuestionRe: Update Cell Value into Excel Cell like 2009.03 and it become 2009.3 Pin
Eddy Vluggen3-Mar-10 1:39
professionalEddy Vluggen3-Mar-10 1:39 
AnswerRe: Update Cell Value into Excel Cell like 2009.03 and it become 2009.3 Pin
pankaj.calm3-Mar-10 2:02
professionalpankaj.calm3-Mar-10 2:02 
GeneralRe: Update Cell Value into Excel Cell like 2009.03 and it become 2009.3 Pin
Eddy Vluggen3-Mar-10 3:03
professionalEddy Vluggen3-Mar-10 3:03 
QuestionRemote administration Pin
kebedetesema2-Mar-10 22:10
kebedetesema2-Mar-10 22:10 
AnswerRe: Remote administration Pin
Eddy Vluggen2-Mar-10 23:51
professionalEddy Vluggen2-Mar-10 23:51 
GeneralRe: Remote administration Pin
kebedetesema3-Mar-10 1:56
kebedetesema3-Mar-10 1:56 
GeneralRe: Remote administration Pin
Eddy Vluggen3-Mar-10 2:09
professionalEddy Vluggen3-Mar-10 2:09 
GeneralRe: Remote administration Pin
kebedetesema3-Mar-10 3:38
kebedetesema3-Mar-10 3:38 
GeneralRe: Remote administration Pin
Eddy Vluggen3-Mar-10 5:09
professionalEddy Vluggen3-Mar-10 5:09 
GeneralRe: Remote administration Pin
kebedetesema3-Mar-10 19:34
kebedetesema3-Mar-10 19:34 
GeneralRe: Remote administration Pin
Eddy Vluggen4-Mar-10 4:09
professionalEddy Vluggen4-Mar-10 4:09 
QuestionRegrding Control Pin
Anil Kumar.Arvapalli2-Mar-10 22:07
Anil Kumar.Arvapalli2-Mar-10 22:07 
AnswerRe: Regrding Control Pin
Eddy Vluggen3-Mar-10 0:02
professionalEddy Vluggen3-Mar-10 0:02 
AnswerRe: Regrding Control Pin
Mirko19803-Mar-10 4:05
Mirko19803-Mar-10 4:05 
QuestionCreating ShortCut on Desktop. Pin
Anil Kumar.Arvapalli2-Mar-10 21:57
Anil Kumar.Arvapalli2-Mar-10 21:57 

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.