REFERENCES and IMPORTS for EXCEL . . .
All --
I have an APP that uses the following statement
When I copy the SUBROUTINE that includes this statement into a new PROJECT, and the LOAD the PROJECT, PREMIER complains that
"type identifier is invalid"
at character 69 (just before the = sign).
I have EXPORTED all of the DEPENDENCIES from the WORKING PROJECT and and IMPORTED them to the NEW PROJECT and I have copied all of the IMPORT STATEMENTS from the WORKING PROJECT to the NEW PROJECT but obviously something is missing.
Can one of you GURUs point me in the right direction please?
Thanks.
-- Matt
I have an APP that uses the following statement
'Attempt to connect with excel Dim MyExcelApp As Microsoft.Office.Interop.Excel.Application = _ System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application")
When I copy the SUBROUTINE that includes this statement into a new PROJECT, and the LOAD the PROJECT, PREMIER complains that
"type identifier is invalid"
at character 69 (just before the = sign).
I have EXPORTED all of the DEPENDENCIES from the WORKING PROJECT and and IMPORTED them to the NEW PROJECT and I have copied all of the IMPORT STATEMENTS from the WORKING PROJECT to the NEW PROJECT but obviously something is missing.
Can one of you GURUs point me in the right direction please?
Thanks.
-- Matt
0
Best Answer
-
Hi Matt,
I think we talk about this earlier, but just in case, you need add reference to Microsoft.Office.Interop.Excel.dll.Thanks, Nikita.
0
Answers
-
Nikita --
Thank you.
Per your suggestion, I have added this REFERENCE and the ERROR is gone.
Souldn't the REFERENCE EXPORT from the WORKING PROJECT and REFERENCE IMPORT into the NEW PROJECT have resolved this?
Thanks.
-- Matt
0 -
Matt, I suspect, reference export/import supports only MediaCy modules. Working with Excel application directly is beyond standard macro functionality and should be handled manually.
Nikita.0 -
Nikita --
Thank you for this additional information.
If this is confirmed to be the case, then perhaps it would be wise to make a prompt that tells the EXPORTER / IMPORTER that anything not MEDIACY will have to be handled manually.
Thanks again.
-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions