BOM export - corrupted Excel files that cannot be opened.

BOM export - corrupted Excel files that cannot be opened.

M.Hawryluk
Advocate Advocate
408 Views
2 Replies
Message 1 of 3

BOM export - corrupted Excel files that cannot be opened.

M.Hawryluk
Advocate
Advocate

Hi,

 

I use slightly modified code from:

https://forums.autodesk.com/t5/inventor-customization/export-parts-list-not-working/td-p/9776554 

to export BOM's from assembly to Excel file (Office 2016).

 

All works fine except that one user reports corrupted Excel files (for all his export attempts).

ILogic is firing up, temporary drawing is created, BOM is created and exported, .xlsx files is created but... can't be opened.

 

I checked Component Services Settings settings, tried some googled solutions (trusted views, repair Office) but no success. I didn't try to re-install Office yet.
I suspect it is Excel/Windows related issue. Any ideas how to fix it?

0 Likes
Accepted solutions (1)
409 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor

Could You share your code here?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

M.Hawryluk
Advocate
Advocate
Accepted solution

I reinstalled Office and it solved the problem. 

0 Likes