Peter Chan
asked on
Path of Workbook
Hi,
I want to know relevant path of the Workbook, per given codes below
I want to know relevant path of the Workbook, per given codes below
using (FileStream fs = new FileStream(openFileDialog1.FileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
using (SpreadsheetDocument doc = SpreadsheetDocument.Open(fs, false))
{
WorkbookPart workbookPart = doc.WorkbookPart;
...
How?
ASKER
Sorry, using this
I do not get its full path.
string Path0 = Path.GetFileName(openFileDialog1.FileName);
I do not get its full path.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
workbookFile = Path.GetFileName(openFileD
so you will have to use lesser obtuse code for your first code line.
/gustav