Click here to Skip to main content
16,017,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use windows service in another project? Pin
himanshu256129-Jun-09 3:09
himanshu256129-Jun-09 3:09 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 4:21
J4amieC29-Jun-09 4:21 
GeneralRe: how to use windows service in another project? Pin
Vikram A Punathambekar29-Jun-09 5:35
Vikram A Punathambekar29-Jun-09 5:35 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 5:46
J4amieC29-Jun-09 5:46 
AnswerRe: how to use windows service in another project? Pin
Vikram A Punathambekar29-Jun-09 3:07
Vikram A Punathambekar29-Jun-09 3:07 
Generalcan you please check this code? Pin
Narendra Reddy Vajrala29-Jun-09 3:14
Narendra Reddy Vajrala29-Jun-09 3:14 
GeneralRe: can you please check this code? Pin
J4amieC29-Jun-09 4:20
J4amieC29-Jun-09 4:20 
Questioncreating excel workbooks from a given template in a particular folder Pin
Krishna Aditya29-Jun-09 1:07
Krishna Aditya29-Jun-09 1:07 
Hi,

I have a template in location " c:\excel_temp\template1.xls". This template is a user defined template.

I have to use this template in a browsed location. ( if user selects "d:\temp\" folder, then I have to import the template in " c:\excel_temp" to "d:\temp" folder).

I am trying this with C#. i have done somepart of it

                        string tempPath =   @"D:\Documents and Settings\eob\Desktop\Testing";

                        //System.IO.Directory.CreateDirectory(@tempPath + launchName);

                        //check path exists
                        if (!System.IO.Directory.Exists(@tempPath + launchName))
                        {
                              System.IO.Directory.CreateDirectory(@tempPath + launchName);
                        }

                        System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@tempPath + launchName);
                        int directoryCount = dir.GetFiles().Length;

                        if (directoryCount != 0)
                        {
                              FileInfo[] fileNames = dir.GetFiles(@tempPath + launchName);
                        }

                        Excel.Application excelFile = new Excel.ApplicationClass();

Now with the excelFile created above, I have to access the template and create an excel file same as the template in the above folder.


I am stuck at this point, pls guide me

Thanks
Ramm
AnswerRe: creating excel workbooks from a given template in a particular folder [modified] Pin
padmanabhan N29-Jun-09 1:31
padmanabhan N29-Jun-09 1:31 
QuestionDatagridview Column Header ReadOnly Pin
rhtbhegade28-Jun-09 21:43
rhtbhegade28-Jun-09 21:43 
AnswerRe: Datagridview Column Header ReadOnly Pin
stancrm28-Jun-09 21:52
stancrm28-Jun-09 21:52 
GeneralRe: Datagridview Column Header ReadOnly Pin
rhtbhegade29-Jun-09 1:48
rhtbhegade29-Jun-09 1:48 
GeneralRe: Datagridview Column Header ReadOnly Pin
stancrm29-Jun-09 2:20
stancrm29-Jun-09 2:20 
GeneralRe: Datagridview Column Header ReadOnly Pin
rhtbhegade29-Jun-09 2:56
rhtbhegade29-Jun-09 2:56 
AnswerRe: Datagridview Column Header ReadOnly Pin
padmanabhan N28-Jun-09 22:09
padmanabhan N28-Jun-09 22:09 
QuestionRe: Datagridview Column Header ReadOnly Pin
KIDYA29-Jun-09 1:40
KIDYA29-Jun-09 1:40 
AnswerRe: Datagridview Column Header ReadOnly Pin
padmanabhan N29-Jun-09 2:04
padmanabhan N29-Jun-09 2:04 
QuestionRecive data from sensor circuit Pin
sebogawa28-Jun-09 21:38
sebogawa28-Jun-09 21:38 
AnswerRe: Recive data from sensor circuit Pin
Christian Graus28-Jun-09 21:48
protectorChristian Graus28-Jun-09 21:48 
AnswerRe: Recive data from sensor circuit Pin
DaveyM6928-Jun-09 22:10
professionalDaveyM6928-Jun-09 22:10 
AnswerRe: Recive data from sensor circuit Pin
OriginalGriff28-Jun-09 22:23
mveOriginalGriff28-Jun-09 22:23 
GeneralRe: Recive data from sensor circuit Pin
sebogawa28-Jun-09 22:27
sebogawa28-Jun-09 22:27 
QuestionFormat a float value in sql query Pin
arun_pk28-Jun-09 21:14
arun_pk28-Jun-09 21:14 
AnswerRe: Format a float value in sql query Pin
Christian Graus28-Jun-09 21:18
protectorChristian Graus28-Jun-09 21:18 
AnswerRe: Format a float value in sql query Pin
OriginalGriff28-Jun-09 21:20
mveOriginalGriff28-Jun-09 21:20 

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.