//OleObject with ProgId
builder.InsertOleObject(MyDir + “Document.Spreadsheet.xlsx”, “Excel.Sheet”, false, false,
representingImage);
what is progId? what is icon?
I use this code, but it can’t show good as in word by hand.
how can I do it?
//OleObject with ProgId
builder.InsertOleObject(MyDir + “Document.Spreadsheet.xlsx”, “Excel.Sheet”, false, false,
representingImage);
what is progId? what is icon?
I use this code, but it can’t show good as in word by hand.
how can I do it?
It is a name that uniquely identifies the file type. E.g. for .docx the progid is “Word.Document.12” and for .xlsx it is “Excel.Sheet.12”.
In MS Word, you can insert OLE as icon and normal mode. You can check this behavior by inserting OLE using MS Word.
Could you please share your input and output documents along with code example here for testing? We will investigate the issue and provide you more information on it.
How can I show the origin name of the OleObject?
Please ZIP and attach your sample input document along with expected output. We will then provide you code example according to your requirement.