LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export data to excel does nothing - Windows 10

This snippet does absolutely nothing on my computer Smiley Sad

 

no export.png

0 Kudos
Message 11 of 22
(2,155 Views)

What is on the clipboard?

 

Wrong method to get the data to Excel friend 


"Should be" isn't "Is" -Jay
0 Kudos
Message 12 of 22
(2,139 Views)

@JÞB wrote:

What is on the clipboard?

 

Wrong method to get the data to Excel friend 


 

Ah yes, sorry. I had both the Export to Clipboard and Export to Excel methods in there. To simplify I just deleted one of them. Neither method works. 

0 Kudos
Message 13 of 22
(2,136 Views)

@nickbike wrote:

@JÞB wrote:

What is on the clipboard?

 

Wrong method to get the data to Excel friend 


 

Ah yes, sorry. I had both the Export to Clipboard and Export to Excel methods in there. To simplify I just deleted one of them. Neither method works. 


Please show your code that doesn't work. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 14 of 22
(2,134 Views)

Just in case this is helpful: Using Jeff's snippet, both methods work here as well. I am using LabVIEW 18.0f2 32-bit, Excel 365 MSO (16.0.11001.20064, 32-bit), and Windows 10 1067 (14393.2248) 64-bit.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 15 of 22
(2,124 Views)

@JÞB wrote:

@nickbike wrote:

@JÞB wrote:

What is on the clipboard?

 

Wrong method to get the data to Excel friend 


 

Ah yes, sorry. I had both the Export to Clipboard and Export to Excel methods in there. To simplify I just deleted one of them. Neither method works. 


Please show your code that doesn't work. 


Neither of the code snippets below work on my computer. When I execute either of these snippets, nothing happens and no error is returned in the error cluster.

 

no export.pngno export to excel.png

0 Kudos
Message 16 of 22
(2,114 Views)

You talk about Excel 365.

 

Do you actually have Excel installed on this PC?  Or is this one of those cloud-based versions where you are getting to Excel through a browser?

0 Kudos
Message 17 of 22
(2,109 Views)

@RavensFan wrote:

You talk about Excel 365.

 

Do you actually have Excel installed on this PC?  Or is this one of those cloud-based versions where you are getting to Excel through a browser?


Good question. Excel 2016 MSO (16.0.9126.2336) 32-bit is actually installed on this machine.

 

And let me walk back a key point that I just realized. The Export to Clipboard IS working. I thought the Export to Clipboard had previously (on my old PC) opened Notepad and showed the data that was exported. It does not do that, I just tested this on an old PC and it only does the export, you have to manually paste the data into another program. I hope that clears that up and that was my mistake in recalling the behavior of Export to Clipboard.

 

However, the Export to Excel is still not working. In that case using the programmatic method OR the Right-Click menu the export is not happening. I just tried this on an old machine with Windows 7, LabVIEW 2017 and Excel 2010 and when you use the programmatic method OR the Right-Click menu Excel is opened and the data is pasted.

 

The most frustrating part is there is no indication from the error cluster or anywhere that it didn't work. I have tried having Excel open before executing the method and it still does not work. 

 

At this point it seems to be a problem with my particular company's more recent computer builds. To even further complicate things I just checked with another LabVIEW developer that got a new computer a few weeks ago and has LV 2018 installed and they are NOT having this Export to Excel issue. My favorite bug, the one that gives no error and is not present on seemingly identical systems. Smiley Sad

0 Kudos
Message 18 of 22
(2,087 Views)

Hah!  I never knew about this Invoke Node before.  I prefer using the RGT, but this actually worked when I tried it (Windows 10, LabVIEW 2016, Office 365 (this is a new PC for me -- I've never used Office 365 before, and don't yet know if I like it ...).

 

Bob Schor

0 Kudos
Message 19 of 22
(2,101 Views)

@RavensFan wrote:

You talk about Excel 365.

 

Do you actually have Excel installed on this PC?  Or is this one of those cloud-based versions where you are getting to Excel through a browser?


That's a good question. I do have Excel 2016 installed. I even tried to have Excel open already.

 

I also want to correct a mistake I made. I thought the Invoke node and the Right-click Export to Clipboard popped up Notepad on my old computer. I just tested it on a similar old computer and it didn't do that. It only copies the data to the clipboard it does not open and paste. I tried it on my current computer and the Export to Clipboard invoke node and right-click menu do work. I'm sorry for this mistake.

 

However, the original issue, Export to Excel, does not work either through the Invoke Node or through the Right-Click menu. The worse part is that there is no error reported. And even worse, I have a colleague that just got a new computer, LabVIEW 2018 and Excel 2016 and this works fine on his computer.

0 Kudos
Message 20 of 22
(2,096 Views)