Collaboration with Excel

Collaboration with Excel - Messages

#1 Posted: 8/14/2010 12:10:31 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Hello.

Today I'm working on the plugin to make it possible to read/write data from/to the Excel files. Here is a first screenshot of how it will look like:


Estimation: Plugin will be available in about 3 hours.
#2 Posted: 8/14/2010 2:08:39 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Plugin is ready for testing/using:
ExcelCollab.0_89.Plugin.Bin.zip (Date: 14.08.2010. File size: 49.34KB) - * To copy .dll file from archive to the "plugins" folder of SMath Studio installation directory.



Best regards, Andrey Ivashov.
#3 Posted: 8/14/2010 4:24:00 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Thanks Andrey

I played a bit and it works for me very nice. I have portable version here and I put the dll file it in the "Xenocede ...\@APPDIR@\plugins" folder.

Might be redundant to say, but using both functions require to have the existing Excel file ('fileName'), and the existing sheet in it (sheetName).

Regards,
Radovan

P.S. A simple example
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Posted: 8/15/2010 7:12:23 AM
Waluyo Adi Siswanto

Waluyo Adi Siswanto

1 likes in 55 posts.

Group: User

Hi Andrey

Would it possible for Linux users using Open Office Spreadsheet ?
OpenOffice has version on Windows as well. This much more general and applicable in multi OS.

Regards
Waluyo
#5 Posted: 8/15/2010 7:44:46 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Waluyo,
Wrote

Would it possible for Linux users using Open Office Spreadsheet ?
OpenOffice has version on Windows as well. This much more general and applicable in multi OS.


I agree with you, and would like to have plugin for Calc as well. At the moment for Windows users there is not a problem (I tested it a bit). You can export an Excel file from Calc and work with it in SMath. Then you can import in Calc the changed Excel file.

I did not try this in Linux yet, but I suppose that would be possible in Linux as well - not sure.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#6 Posted: 9/5/2010 12:43:19 AM
jhardy1

jhardy1

0 likes in 2 posts.

Group: User

Wrote

Plugin is ready for testing/using:
ExcelCollab.0_89.Plugin.Bin.zip (Date: 14.08.2010. File size: 49.34KB) - * To copy .dll file from archive to the "plugins" folder of SMath Studio installation directory.

Best regards, Andrey Ivashov.


Andrey,

I have down-loaded and installed the plug-in, but whenever I try to use the "cellImport" function, I get an message that the "File doesn't exist". I am sure that the path name, file name, and sheet name are all correct. Have I done something wrong?

I am using Windows 7 Home Premium, with Microsoft Office 2010. I have tried both xls format and the newer xlsx format. Screen shot at the following link (sorry - I couldn't work out how to embed the image:

http://www.mediafire.com/?92pv9ncncq4s4x4
#7 Posted: 9/5/2010 6:56:15 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

jhardy1, unfortunately this plugin has a problem with exporting changes to *.xls files - after it saves anything the file will lost all formulas, only answers will exist on the sheet. So, maybe you do not want to use cellExport(..) function. If you're still need this function to work then it is more useful for me to get your Excel sheet so I could try to recreate an error message.

P.S.: One of the Russian Forum users are working to create another Excel plugin that will be free from such problems. I will inform here when work will be finished.

Best regards, Andrey Ivashov.
#8 Posted: 9/5/2010 8:19:31 PM
jhardy1

jhardy1

0 likes in 2 posts.

Group: User

Wrote

Wrote

Plugin is ready for testing/using:
ExcelCollab.0_89.Plugin.Bin.zip (Date: 14.08.2010. File size: 49.34KB) - * To copy .dll file from archive to the "plugins" folder of SMath Studio installation directory.

Best regards, Andrey Ivashov.


Andrey,

I have down-loaded and installed the plug-in, but whenever I try to use the "cellImport" function, I get an message that the "File doesn't exist". I am sure that the path name, file name, and sheet name are all correct. Have I done something wrong?

I am using Windows 7 Home Premium, with Microsoft Office 2010. I have tried both xls format and the newer xlsx format. Screen shot at the following link (sorry - I couldn't work out how to embed the image:

http://www.mediafire.com/?92pv9ncncq4s4x4


OK - just tested on my work laptop, and it works fine. Work lap-top is Windows XP SP3, running Excel 2007. I note that the plug-in only works for "*.xls" files, not for the newer "*.xlsx" format, but it is pretty easy to convert "xlsx" to "xls" using Excel if you need to use this capability.

Seems my problem on my home computer could be a Windows 7 issue, or maybe an Office 2010 issue, or an issue with my AntiVirus package at home?

Anyway, thanks Andrey for the warning about possible corruption of Excel files. As far as I can see, using the importCell function does not corrupt the xls file, but as you say, using exportCell over-writes the whole workbook (Note: not just the affected worksheet!) with values instead of the original formulae - use with great care!

Thanks!
#9 Posted: 9/15/2010 2:56:17 PM
rsawaguchi

rsawaguchi

0 likes in 2 posts.

Group: User

Hi

I'm evaluating the possibility of replacing my Mathcad with Smath, then I have a question.

Today I use the MathCad into the Excel sending an retrieving data to Mathcad via VBA.

Is it possible to use Smath this way?

Below Is the VBA code that I use:

'Activate the Mathcad object
Dim obj As OLEObject
Set obj = ActiveSheet.OLEObjects(1)
obj.Activate

'Get the Mathcad worksheet
Set Mcws = obj.Object.Worksheet

'send the matrix to Mathcad
Mcws.SetValue "Prop", Prop

'Execute code in Mathcad
Mcws.Recalculate

'Get MathCad results
Set Results = Mcws.GetValue("Results")
Results(1, 1) = Results_MS.GetElement(0, 0)

I'd appreciate your help
Regards
#10 Posted: 11/23/2010 10:23:14 AM
VER

VER

0 likes in 1 posts.

Group: User

Hi,

I'm currently evaluating SMath Studio and sofar I love it! We're also very willing to get rid of that other program....

I'm very interested in the Excel plugin, but I'm getting the following error: "Error occured while trying to load third-party assembly. Plugin disabled etc..."

I'm running 89.8

Thanks
#11 Posted: 11/23/2010 11:07:26 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

It seems that the Excel plugin (0.89) is not working for this version (0.89.8). The recent beta version (0.89.8) is a bit different that the stable one (0.89). Andrey pointed out in this thread that the new improved Excel plugin is on its way.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#12 Posted: 12/23/2010 9:45:21 PM
SG

SG

0 likes in 1 posts.

Group: User

I am trying to use this plug-in to write a matrix to an Excel file. It seems to be working well for matrices smaller than about 15x15. When I try to write a large matrix, e.g. 50x50, I only get the first 20 or so rows appearing in the Excel file although I do get the correct number of columns.

I am running Smath 0.89 under windows XP with Excel 2003.

I would appreciate any suggestions.

Thanks

SG
#13 Posted: 4/6/2011 1:59:41 PM
maweilian

maweilian

5 likes in 103 posts.

Group: User

Andrey,

Would you be willing to post a link to your source code for this plugin for the benefit of those who want to learn more about writing plugins?
Will Massie Mechanical Engineer Oregon, USA
#14 Posted: 7/25/2011 8:18:27 AM
bliengme@stfx.ca

bliengme@stfx.ca

0 likes in 3 posts.

Group: User

When I use the addin on my Win7 desktop, I tried to send data to an existing, closed, XLS file. When I attempt to open the XLS file (with Excel2010) I get "File contains unreadable data" and it refuses to open. Any ideas?
Thanks
#15 Posted: 11/3/2012 2:46:56 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Hello
I've thought this free opensource component might be useful to have SMath interact with Excel and Calc.
http://spreadsheetlight.com/
#16 Posted: 12/14/2012 6:17:51 PM
Ricyteach

Ricyteach

1 likes in 14 posts.

Group: User

Is there any way that this plugin could be updated to work with the current release (0.95)? It would be very helpful to me. Thanks!
#17 Posted: 12/14/2012 9:01:49 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Is there any way that this plugin could be updated to work with the current release (0.95)? It would be very helpful to me. Thanks!



you might consider using the Data export plugin by Davide Carpi (forum post).

The ExportData.CSV() function is better in that it can create files, if they do not exist and in that excel can read them without problems. Also, complete matrices and vectors can be exported in a single statement.
However, you cannot create individual sheets and cannot adress individual cells except by providing matrices of corresponding sizes.

For input from excel, you can still rely on importCell, as long as the values are integer or string.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#18 Posted: 12/16/2012 1:19:31 AM
Ricyteach

Ricyteach

1 likes in 14 posts.

Group: User

Fantastic I'll give that a try. Thanks!
  • New Posts New Posts
  • No New Posts No New Posts