LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1045 Using Report Generation Excel 2010

Hello,

 

The attached code throws an error 1045 when using Excel 2010.  I don't get this error when using Excel 2007.

 

Please Advise

 

Thanks

 

Error.jpg

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 8
(4,393 Views)

Take a look at this Knowledge Base article and see if if helps.

 

Error 1045 When Using Report Generation Toolkit for Microsoft Office

http://digital.ni.com/public.nsf/allkb/3E4102D8B91D0F9E86256CE0006BADCB

Applications Engineer
National Instruments
0 Kudos
Message 2 of 8
(4,375 Views)

We tried that but still got the error

Dan Shangraw, P.E.


   

0 Kudos
Message 3 of 8
(4,364 Views)

Can you give a description of your overall application?  Also, have you tried to run the code with highlighted execution turned on to see where the error occurs?

Applications Engineer
National Instruments
0 Kudos
Message 4 of 8
(4,338 Views)

This error only happens using Excel 2010.  I am using Excel 2007 and it works fine.

 

It semms to be occuring during the save Report or Close Report VI (see attached VI).

 

 

Dan Shangraw, P.E.


   

0 Kudos
Message 5 of 8
(4,326 Views)

Hey there

 

So, any solutions or suggestions?
I`ve got this error too, but this time using MS Excel 2007. I`ve checked KnowledgeBase article. Error occurs while disposing report function/

0 Kudos
Message 6 of 8
(4,105 Views)

ASTDan

 

Just downloaded and ran you code and it seems to work fine under LV2012, Windows-7, Office-2010.  What version of LV and OS are you using?

0 Kudos
Message 7 of 8
(4,093 Views)

Hello,

 

One thing I observed I get the error when I had the window state set to "minimized".  When I changed the window state to "no change" the error went away.

 

Example_VI_BD.png

Dan Shangraw, P.E.


   

Message 8 of 8
(4,050 Views)