LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel lv.class and word lv.class

Solved!
Go to solution

Hi,

 

I am having such a problem why the excellv.class libraries do not work properly when there are power cuts. 

What is the solution?

 

ETC.

Error code 1 occured at Open/Create/Replace file in NI_Word.lvclass:Save report to file  28600007

0 Kudos
Message 1 of 11
(2,091 Views)

@iErd wrote:

I am having such a problem why the excellv.class libraries do not work properly when there are power cuts. 

What is the solution?

 

ETC.

Error code 1 occured at Open/Create/Replace file in NI_Word.lvclass:Save report to file  28600007


If you really want help, you'll have to provide more (and clearer!) information.  Points of confusion:

  • What code are you running?  Is this code you wrote that uses the Report Generation Toolkit?  If so, attach the Code so we can look at it and (possibly) find errors.
  • You say you have a problem with excellv.class libraries.  What problem?
  • You mention "problem" in conjunction with "power cuts".  If you "pull the plug" on your PC, it should not be surprising that the (software) libraries won't work properly.  Can you clarify what you mean?
  • You mention Error code 1 with a function in NI_Word.lvclass.  Where is the code?  If you've got bad/miswired code, and fail to show it to us, we can't help you fix it.

In addition to attaching code, and explaining more clearly what you are trying to do, and whether you are working with Excel or Word or both (in the same program?), it would also be helpful to know what Software you are using (if LabVIEW, what version and what bit-ness), what OS you are using, and what version of Office you are running.

 

Bob Schor

0 Kudos
Message 2 of 11
(2,055 Views)

Hi Bob,

 

I keep a data record in .html format in the code I wrote. for this, I added NV_excellv.class and NV_wordlv.class to both the project file and properties and created a folder where the invoked location is all subvi and the main.vi of the project. It's calling from here. Under normal conditions, there is no problem, but even if the UPS is activated in case of power failure, I get the following error code.

 

I am attaching the code of the section I recorded. 

Other information you want is as follows: microsoft office 365
excel version 2208
operating system windows 10 64bit
labview 2020 64 bit

 

Waiting for your return. 

 

idilE_0-1663658954369.png

 

 

idilE_1-1663658969616.pngidilE_2-1663658983567.png

idilE_4-1663659245123.png

 

 

0 Kudos
Message 3 of 11
(2,042 Views)

Take a look at you html file name. 
A file name with <18> is not valid. You need to make sure that your code is generating a correct file name. 

I can't see where the <18> is coming from, as your wires are not strait and very hard to follow. 

0 Kudos
Message 4 of 11
(2,024 Views)

Hİ,

I tried it has nothing to do with the value taken from the strings. Only happening during power outage.

0 Kudos
Message 5 of 11
(2,017 Views)

It is still a file name issue! 

From the error message, make sure that path and filename i valid. 

Is your string correct ? 

Is your "Products" Ring control filled out correctly ? 

What makes your "Products" Ring control have data ?

 

Other vice log all relevant data when you get the error.   

 

 

0 Kudos
Message 6 of 11
(2,011 Views)

I know what you said. The program is already running, but as I mentioned above, my main problem is different, please share if you have a different comment.

0 Kudos
Message 7 of 11
(2,003 Views)

<%d> is returned as a standin for non-existing elements.

 

The picture you show does not line up with the file name shown in the error message. You will have to supply more information about your system to get more help.

0 Kudos
Message 8 of 11
(1,977 Views)

Hi,

 

I beg you to take a look at this. same error <%d> does not exist.

1.png

0 Kudos
Message 9 of 11
(1,957 Views)
Solution
Accepted by topic author iErd

There is still '<' and '>' in the file path, which is not a valid character on windows.

You can use the 'Is Name Multiplatform.vi' in the 'File I/O' -> 'Advanced File Functions'.

 

After that you will get a different Error Message, that may help you/us to narrow down your mentioned problem.

0 Kudos
Message 10 of 11
(1,945 Views)