LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ni excel.lvclass

Solved!
Go to solution

I create a ni_report and run it for Excel or Word it is always search the ni_excel. lvclass  it does not give an error and it is working I can not find manually the file on my computer. but it was not made before Just I installed the Labview 2024 community edition. How can I solve this?

Yakup1971_1-1717253378986.png

 

0 Kudos
Message 1 of 11
(899 Views)

You are not expected to directly use the Class wire -- it serves as a "Connector" that encapsulate the "object" you are creating as an Excel Report.  Here is a picture of the RGT main Palette:

RGT Main Palette.png

 

The function "Create Report" creates this Object, which is then passed into (top left) and out of (top right) most of the other RGT functions until you end the chain with "Dispose Report" (which closes Excel -- if you want to save a WorkBook, you, of course, need to "Save Report to File" first).

 

If you are just getting started with using the RGT, a decade ago I posted on the Forum a "Revised "Generate Excel Report" Demo" whichyou can find it by searching the Forum for "Revised Generate Excel Report" and it should pop up before you finish typing "Excel").  It shows how you can generate a report, and illustrates some of the features of the RGT.

 

Bob Schor

0 Kudos
Message 2 of 11
(890 Views)

There are two NI examples and Your File screenshot just starts the ranging. But it is the same.I also send my ni_report directory. I think there are missing files I am not sure

Yakup1971_0-1717257999583.png

Yakup1971_1-1717258050653.png

Yakup1971_2-1717258183381.png

Yakup1971_3-1717258540414.png

 

0 Kudos
Message 3 of 11
(871 Views)

This issue has been reported to LabVIEW R&D as Bug 2754118. The search dialog appears when your code runs in the LabVIEW 2024 Q1 editor... you shouldn't see any issues when running the code as a built EXE.

0 Kudos
Message 4 of 11
(864 Views)

@Darren wrote:

This issue has been reported to LabVIEW R&D as Bug 2754118. The search dialog appears when your code runs in the LabVIEW 2024 Q1 editor... you shouldn't see any issues when running the code as a built EXE.


Oops -- if NI updates the RGT (which has run pretty well for at least 15 years) and introduces a bug, then my suggestions won't fix it!  The example code I attached just worked fine on my LabVIEW 2021 installation, and has worked since I published it in the Forum in 2014.

 

Do you have access to an older version of LabVIEW to try out your code (and my example)?

 

Bob Schor

0 Kudos
Message 5 of 11
(856 Views)

Yes, this bug was introduced as a result of some file reorganizations made to the Report Gen Toolkit in LabVIEW 2024 Q1.

0 Kudos
Message 6 of 11
(845 Views)

I have tried by 21 (32-bit) and it works normally. Is there any way to use this 2021 version of report add-ons in 2024? For example is it possible to copy this file into the 2024.

 

 

0 Kudos
Message 7 of 11
(828 Views)

The simple answer to "can I open a working VI in LabVIEW 2021 in a newer version of LabVIEW, say LabVIEW 2024 Q1" is "Yes, you can, but when you do that, LabVIEW 2024 Q1 will "change it internally" so it becomes as though it was written in LabVIEW 2024 Q1, so any internal flaws/bugs in LabVIEW 2024 Q1 will still be preventing the code from working in that faulty environment.

 

[I just reread this post, and realized I forgot to say "So the real answer to your question is "No, it won't work for you"", and edited it to insert this paragraph.]

 

The "reasonably good news" is this is a known (and serious!) bug that NI knows about.  Did you enable the NI Update Service when you installed LabVIEW?  You might try running that and see if NI has released an update that "fixes the problem".  Otherwise, temporarily downgrade your development environment to LabVIEW 2021 for projects involving the Report Generation Toolkit, and when LabVIEW 2024 Q1 gets fixed, you can migrate it back.

 

Bob Schor

0 Kudos
Message 8 of 11
(797 Views)
Solution
Accepted by topic author Yakup1971

You can manually fix the issue in your LabVIEW 2024 Q1 install by replacing the following VI with the one attached to this reply:

 

[LabVIEW 2024]\vi.lib\Utility\NIReport.llb\Calculate Dynamic Item Absolute Path.vi

 

Make sure to back up the original file before making this change. This updated VI is the one that will ship with LabVIEW 2024 Q3.

0 Kudos
Message 9 of 11
(783 Views)

Hello, @Yakup1971.

 

     Please try the patch that @Darren posted on the previous reply.  If it fixes the problem (which I hope it does), please mark Darren's response as the "Solution".  There will undoubtedly be other Forum users who find this bug, and having the "answer" tested and verified (by you) will be a big help to them!

 

Bob Schor

0 Kudos
Message 10 of 11
(765 Views)