M
Magnus.Moraberg
Hi,
I have a C# .net application.
In this application, the user clicks on a button to generate an excel
file. I save the macros which compose this generate file within an
excel template file. Therefore when generating the excel file, I need
to read from this template.
As a result, I need the path to this template file from within my
application -
app = new Excel.Application();
workbook = app.Workbooks.Open(@"templateFolder + "\Book1.xlt",
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing);
I have added a setup project to my solution, and via this I have added
the template to the Application Folder (under File System). In other
words, this template will be installed into the application folder for
the user in question.
Problem is, how do I handle this when I'm debugging my application and
I don't neccessary have an "Application Folder".
Thanks for your help,
Barry.
I have a C# .net application.
In this application, the user clicks on a button to generate an excel
file. I save the macros which compose this generate file within an
excel template file. Therefore when generating the excel file, I need
to read from this template.
As a result, I need the path to this template file from within my
application -
app = new Excel.Application();
workbook = app.Workbooks.Open(@"templateFolder + "\Book1.xlt",
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing);
I have added a setup project to my solution, and via this I have added
the template to the Application Folder (under File System). In other
words, this template will be installed into the application folder for
the user in question.
Problem is, how do I handle this when I'm debugging my application and
I don't neccessary have an "Application Folder".
Thanks for your help,
Barry.