Click here to Skip to main content
15,900,461 members

Comments by VAIBHAV PANDYA (Top 4 by date)

VAIBHAV PANDYA 7-Mar-17 1:16am View    
https://social.msdn.microsoft.com/Forums/en-US/da5f2f46-b546-4df3-8864-1410fd9bf03c/type-mismatch-error-when-creating-a-pivotcache-with-65536-rows-in-range?forum=csharpgeneral
VAIBHAV PANDYA 16-Sep-16 0:41am View    
The raw Excel sheet is exported from a software developed in C#. So I want to export it in pivot table representation directly from Software.
VAIBHAV PANDYA 31-Jul-12 9:24am View    
I reinstall Office and also read the link which you mentioned but both are unable to resolve the problem.
Thanks.
VAIBHAV PANDYA 18-Jul-12 9:17am View    
Hello Mr. Hiller

Thank you for your feedback.

wordControl is a name of control which provides the functionality to loading up a word document on the windows Application form.

wd = wordControl.ActiveDocument means the Active Document(which is currently loaded on the wordControl) is assigned to object of word.Document

For Each HeaderFooter In wa.ActiveDocument.StoryRanges
is used to get the variable which needs to be replaced on the document.

I also tried

For Each HeaderFooter In wd.StoryRanges

but it also threw exception:

Unable to cast COM object of type 'System.__ComObject' to interface type 'Word.Range'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{0002095E-0000-0000-C000-000000000046}' failed due to the following error: could not be found. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND)).

Thank You,