Xlsx Import/Export plugin

Xlsx Import/Export plugin - share data between SMath Studio and XLSX spreadsheets - Messages

#21 Posted: 4/17/2016 2:46:33 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Does this or any other "excel" plugin work with "ods" extensions? I am on Libre office on both Windows and Linux at home. I could not get to work.


Look here: Data Exchange plugin
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#22 Posted: 8/27/2017 4:58:51 AM
Michael Barnes

Michael Barnes

0 likes in 1 posts.

Group: User

Hi Davide,
I had successfully used the plug-in until Excel 2016 / Windows 10 (or both).

Re-using Smath code (very simple - single line, single cell import), I get an error:
"The 'br' start tag on line 767 does not match the end tag of 'front'. Line 768. position 9."

Could you advise where I could start de-bugging / looking for a solution?

Otherwise an awesome plug-in (until MS changed something ).

Thanks and kind regards,
Michael
#23 Posted: 8/27/2017 1:06:52 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

I've made a survey on the Github of the plugin that handle the worksheets and seems something that might happens when a graph or an object contains multiline text, but cannot be fixed from inside that plugin. I might try to provide a fix from inside our plug-in; could you share the worksheet that cause the issue? (if cannot be published you can send me a PM or a mail).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#24 Posted: 1/29/2018 5:10:06 AM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

I recognize some problems importing an excel-sheet.
I use , as decimal point.

If an excel sheet contains numbers with decimal point, importing fails. ( "The stack is empty." )
If I put a = before each number with point/comma, then it works.

Changing the settings in Excel does not work.

With the setting using point as 'decimal point" in Smath it works as in older versions.

Please have a look at the screenshots below:

File not found.File not found.
1 users liked this post
Davide Carpi 1/29/2018 7:27:00 AM
#25 Posted: 1/29/2018 7:27:21 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Thank you very much, bug reproduced and hopefully fixed

PLUGIN UPDATED
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#26 Posted: 1/29/2018 8:41:17 AM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

Wrote

Thank you very much, bug reproduced and hopefully fixed



I am the one who has to thank you. It works.
#27 Posted: 2/7/2018 9:20:57 AM
Mikka

Mikka

36 likes in 206 posts.

Group: User

Good day, it is not possible to get data from the excel from cells B6 and E6. File excel attachedmy SMath XLSX input.xlsx (11 KiB) downloaded 91 time(s).
Не официальный справочник http://sites.google.com/site/mikkhalichlab/ jabber конференция smath@conference.jabber.ru
#28 Posted: 2/7/2018 10:16:29 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

The problem here is that the I/O syntax of this plugin I've defined

="something"
as the way to import/export symbolical data

"something"
as the way to import/export math strings

therefore you can't use excel string chaining, since it is interpreted as symbolic data.

I guess that this feature is marginal enough to safely change it and set both the cases to import stuff as strings, then one can still use str2num() to convert to symbolic math, but I'm not sure about how this impact existing worksheets. Let's hear if someone in the community has some major concerns about this change.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Mikka 2/8/2018 2:31:00 AM
#29 Posted: 2/8/2018 2:31:06 AM
Mikka

Mikka

36 likes in 206 posts.

Group: User

I need to get the text data from the excel, which are generated by formulas ...
Не официальный справочник http://sites.google.com/site/mikkhalichlab/ jabber конференция smath@conference.jabber.ru
#30 Posted: 2/8/2018 1:05:01 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I need to get the text data from the excel, which are generated by formulas ...


Ignore mycomment.
In short, I don't understand why Excel is still delivered with Windows.
My Win 7 laptop "Starter Edition" does not even have Word, Excel [Paint; piece of crap].
If you generate/tabulate data in Excel, it comes from formulas and cells referenced/dragged.
You can generate same data in Smath.
The attached will create CWD:="C:\SmathFile" to read from your download.
Smath file system allows to save formulas [no limit],
read them back ... an example given.

text data ... you mean to read Excel numerical data <= back in Smath as Text,
but why ? Maybe to make an image as frozen stuff for sharing ???

Smath 6179

File READ First.sm (22 KiB) downloaded 124 time(s).
1 users liked this post
Mikka 2/9/2018 3:36:00 AM
#31 Posted: 2/11/2018 4:10:11 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.6611

- All text cells are now imported as text (import of symbolic data still possible with built-in str2num() function);
- Fixed import of empty strings;
- Fixed import of some exponential numbers;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
3 users liked this post
frapuano 2/11/2018 5:14:00 PM, Andrey Ivashov 2/11/2018 5:54:00 PM, Mikka 2/13/2018 4:03:00 AM
#32 Posted: 2/13/2018 4:05:02 AM
Mikka

Mikka

36 likes in 206 posts.

Group: User

Thanks, everything works well
Не официальный справочник http://sites.google.com/site/mikkhalichlab/ jabber конференция smath@conference.jabber.ru
#33 Posted: 6/5/2018 12:15:49 PM
chon

chon

0 likes in 15 posts.

Group: User

Hey. I have mistake. Not read cells with dual address.
For example:
1. exit: import Data.XLSX (File_Data,"Source","X4","AH4") - does not import.
2. exit: importData.XLSX(File_Data,"Source","X4", "A4") - imports.
That is, the difference in the address "A4" or " A4 " - with a double letter does not import.

v. 1.1.6616.19995

source.7z (42 KiB) downloaded 80 time(s).
#34 Posted: 8/13/2018 7:48:29 AM
kadpeter

kadpeter

0 likes in 10 posts.

Group: User

Hello,

I found a failure with XLSX Import/Export plugin using in our national settings (Hungarian). We use "," as decimal symbol in Excel and in SMath too.

If I export 5/4 or '0,8' to Excel, I'll get '0.8' (string). If I export 6/4, I'll get '2018.01.02' (date).
If I import '="2.54*{'kN/'m}"' from Excel, I'll get '="2.54*{'kN/'m}"' (not '2,54 kN/m').
If I import '="2,54*{'kN/'m}"' from Excel, I'll get '="2,54*{'kN/'m}"'.
But if I import '0,8' (number) from Excel, I'll get '0,8' value (wich is correct).

Best regards

Peter Kaderasz
#35 Posted: 8/13/2018 2:57:14 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Hey. I have mistake. Not read cells with dual address.
For example:
1. exit: import Data.XLSX (File_Data,"Source","X4","AH4") - does not import.
2. exit: importData.XLSX(File_Data,"Source","X4", "A4") - imports.
That is, the difference in the address "A4" or " A4 " - with a double letter does not import.

v. 1.1.6616.19995


Sorry for the late answer, I've totally missed this report.

When I open your file I see this:
2018-08-13 19_53_47-Window.png
And if I change it with AH4 I get the result:
2018-08-13 19_55_24-Window.png

I'll inspect the exeption thrown by AP4 however.

Wrote

Hello,

I found a failure with XLSX Import/Export plugin using in our national settings (Hungarian). We use "," as decimal symbol in Excel and in SMath too.

If I export 5/4 or '0,8' to Excel, I'll get '0.8' (string). If I export 6/4, I'll get '2018.01.02' (date).
If I import '="2.54*{'kN/'m}"' from Excel, I'll get '="2.54*{'kN/'m}"' (not '2,54 kN/m').
If I import '="2,54*{'kN/'m}"' from Excel, I'll get '="2,54*{'kN/'m}"'.
But if I import '0,8' (number) from Excel, I'll get '0,8' value (wich is correct).

Best regards

Peter Kaderasz


Hello, I'll inspect it ASAP (and if your able to provide a small file with these example it would help too )
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#36 Posted: 8/15/2018 3:53:33 AM
kadpeter

kadpeter

0 likes in 10 posts.

Group: User

Hello Davide,

I've tried the examples from the plugin's documentation (https://en.smath.info/forum/yaf_postst1860_Xlsx-Import-Export-plugin.aspx).

Here is a picture (this time I modified '4/5' to '6/5', you can see that this value imported to Excel as '2018.01.02' in our date format 'yyyy.mm.dd'):

Show Spoiler



Other numerical values, f.e. '-57,1' and 'sin(2^(1/2)) imported to Excel as string, so we can't do mathematical operations with these values.

Best regards

Peter Kaderasz
#37 Posted: 10/23/2018 7:32:06 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.6839 and later

- fixed export as text/date of numbers;


release deleted
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#38 Posted: 10/25/2018 1:09:46 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.6839 and later

  • fixed export as text/date of numbers;
  • fixed previous commit issues on extension's download;
  • migration to netstandard2.0/netcoreapp2.0
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#39 Posted: 11/22/2018 2:27:36 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.6884 and later


Office Open XML I/O library changed from ClosedXML to EPPlus

Advantages:
  • better compatibility with non compliant xml schema (f.e. issues with newline in post #22 or here);
  • smaller library size;
  • works in SMath Viewer;
  • easier coding;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
5 users liked this post
sergio 11/22/2018 3:16:00 PM, frapuano 11/22/2018 3:41:00 PM, Вячеслав Мезенцев 11/22/2018 6:57:00 PM, NDTM Amarasekera 11/22/2018 11:07:00 PM, Dionysios J. Pantazis 11/24/2018 4:22:00 PM
#40 Posted: 1/29/2019 2:10:02 AM
Mikka

Mikka

36 likes in 206 posts.

Group: User

Hello, stopped working import from xlsx file.
lastError = " Variable and function names can't start with a number. File attached

test.sm (7 KiB) downloaded 77 time(s).
Snimok.JPG
Не официальный справочник http://sites.google.com/site/mikkhalichlab/ jabber конференция smath@conference.jabber.ru
  • New Posts New Posts
  • No New Posts No New Posts