Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
Generalsingle selection across ListBoxes Pin
Maddie from Dartford16-Apr-08 22:57
Maddie from Dartford16-Apr-08 22:57 
GeneralRe: single selection across ListBoxes Pin
Simon P Stevens16-Apr-08 23:37
Simon P Stevens16-Apr-08 23:37 
GeneralRe: single selection across ListBoxes Pin
Maddie from Dartford16-Apr-08 23:53
Maddie from Dartford16-Apr-08 23:53 
GeneralRe: single selection across ListBoxes Pin
Simon P Stevens17-Apr-08 0:18
Simon P Stevens17-Apr-08 0:18 
QuestionProgram with SQL Support Pin
m1n1me16-Apr-08 22:57
m1n1me16-Apr-08 22:57 
GeneralRe: Program with SQL Support Pin
ali_reza_zareian17-Apr-08 0:28
ali_reza_zareian17-Apr-08 0:28 
GeneralRe: Program with SQL Support Pin
m1n1me17-Apr-08 18:44
m1n1me17-Apr-08 18:44 
General'System.StackOverflowException' [modified] Pin
cocoonwls16-Apr-08 22:52
cocoonwls16-Apr-08 22:52 
GeneralRe: 'System.StackOverflowException' Pin
Simon P Stevens16-Apr-08 23:34
Simon P Stevens16-Apr-08 23:34 
GeneralRe: 'System.StackOverflowException' Pin
cocoonwls17-Apr-08 0:07
cocoonwls17-Apr-08 0:07 
GeneralRe: 'System.StackOverflowException' Pin
Simon P Stevens17-Apr-08 0:14
Simon P Stevens17-Apr-08 0:14 
GeneralQyery Builder Pin
Muneer Safi16-Apr-08 22:45
Muneer Safi16-Apr-08 22:45 
QuestionRe: Qyery Builder Pin
ali_reza_zareian17-Apr-08 0:31
ali_reza_zareian17-Apr-08 0:31 
GeneralRe: Qyery Builder Pin
Muneer Safi17-Apr-08 0:42
Muneer Safi17-Apr-08 0:42 
GeneralRe: Qyery Builder Pin
Pete O'Hanlon17-Apr-08 1:30
mvePete O'Hanlon17-Apr-08 1:30 
QuestionMultiple DataKey Pin
frian_sf16-Apr-08 22:42
frian_sf16-Apr-08 22:42 
GeneralRe: Multiple DataKey Pin
Reelix17-Apr-08 19:48
Reelix17-Apr-08 19:48 
GeneralZip multiple files Pin
JustRonald16-Apr-08 22:35
JustRonald16-Apr-08 22:35 
QuestionControlCollection Question Pin
Programm3r16-Apr-08 22:26
Programm3r16-Apr-08 22:26 
AnswerRe: ControlCollection Question Pin
Simon P Stevens16-Apr-08 23:25
Simon P Stevens16-Apr-08 23:25 
GeneralRe: ControlCollection Question Pin
Programm3r17-Apr-08 19:31
Programm3r17-Apr-08 19:31 
GeneralFetching meta data of MS Office files [modified] Pin
sachinkalse16-Apr-08 21:36
sachinkalse16-Apr-08 21:36 
We are trying to fetch Author, Company Name and Creation Date of MS Office Files (.doc, .docx, .xls, .xlsx, .ppt, .pptx) using following code

protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        string strFileName = string.Empty;<br />
        strFileName = @"D:\My File.pptx";<br />
<br />
        DSOFile.SummaryProperties DSOSummaryProperties;<br />
        DSOFile.OleDocumentPropertiesClass OleFile;<br />
        OleFile = new OleDocumentPropertiesClass();<br />
        OleFile.Open(strFileName, true, dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);<br />
        DSOSummaryProperties = OleFile.SummaryProperties;<br />
<br />
        Response.Write("Author : " + DSOSummaryProperties.Author);<br />
        Response.Write(" Company : " + DSOSummaryProperties.Company);<br />
        Response.Write(" Date Created : " + DSOSummaryProperties.DateCreated);<br />
        OleFile.Close(false);<br />
<br />
    }


This works well in many conditions except stated below

1. If we try to rename .docx as .doc or .xlsx as .xls or .pptx as .ppt
In this situation no data is fetched, but no error too

2. When file is created like,
Right Click in any drive -> New ->
New Microsoft Office Word Document.docx
or
New Microsoft Office Excel Worksheet.xlsx
or
New Microsoft Office PowerPoint Presentation.pptx

In this case while opening the file following error is generated
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

Please guide, if any one knows the reason behind.

More over how to fetch meta data of .xps files?

modified on Thursday, April 17, 2008 4:06 AM

GeneralRe: Fetching meta data of MS Office files Pin
Member 769142521-Feb-11 1:10
Member 769142521-Feb-11 1:10 
QuestionHow to open a XML file without validating? Pin
Hariharan210516-Apr-08 20:25
Hariharan210516-Apr-08 20:25 
AnswerRe: How to open a XML file without validating? Pin
pmarfleet16-Apr-08 22:39
pmarfleet16-Apr-08 22:39 

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.