Join
Sign in
Search Options
Search Everything
Search Formats
Home
Blog
Resources
Forums
About Open XML
More ...
Home
»
Forums
»
Formats
»
WordprocessingML
»
Retrive a embedded object xls file name from word document in c#.net
Retrive a embedded object xls file name from word document in c#.net
Formats
Discussions about working with different Open XML Formats
Get this RSS feed
Details
0
Replies
0
Subscribers
Posted
over 2 years ago
Options
Subscribe via RSS
Share this
WordprocessingML
Retrive a embedded object xls file name from word document in c#.net
rated by 0 users
This post has
0 Replies |
0
Followers
aravindsiv
5
Posted by
aravindsiv
on
Wed, Feb 10 2010 4:36 AM
rated by 0 users
Post Points: 5
Retrive a embedded object xls file name from word document in c#.net
Hai Friends::
I want Retrive a embedded object xls file name from word document in c#.net. when i using openxml Sdk2.0 i can get the Worksheet name .I want get .Xls Filename. Any one Give Suggestion.
ArrayList arlFileList= new ArrayList();
Package toExtract = Package.Open(@"C:\Test Doc.docx");
foreach (PackagePart pPart in toExtract.GetParts())
{
partURI = Path.GetFileName(pPart.Uri.ToString());
if (partURI.ToLower().EndsWith(".xlsx") || partURI.ToLower().EndsWith(".xls"))
{
string xlsFile = partURI.ToString();
}
}
Page 1 of 1 (1 items)