Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
retrieve embedded object xls from word document in c# in open xml
aravind
14 years ago
6k
Reply
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();
}
}
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Filesystemwatcher triggers multiple events for one file
regular expressions help