Questions tagged [.netlink]
Questions about integrating Mathematica and .Net using the .NET/Link functionality provided with Mathematica.
33
questions
18
votes
2
answers
3k
views
Open Excel file with Mathematica
I would like to open an Excel file and manipulate it as a COM object. While I'm able to open an instance of excel with
...
22
votes
2
answers
635
views
MathKernel doesn't return all Messages
In Mathematica I run this command:
Plot[Sin[x], {x, 1, 15}, GridLines -> error]
It generates a Plot with this error message:
A GridLines specification ...
16
votes
2
answers
1k
views
Does Mathematica have a "MATLAB Builder" equivalent?
I was wondering if Mathematica has an equivalent of MATLAB's "MATLAB Builder" as seen here?
I found this but it reads as if all programs using .NET/Link must have Mathematica installed on them as ...
21
votes
2
answers
3k
views
How can I deploy DLL files created by a Fortran function and call them from Mathematica
This is my Fortran function, established by Intel visual Fortran 11.1
...
33
votes
3
answers
2k
views
Calling IronPython code from Mathematica
I'd like to call some IronPython code from Mathematica using .NET/Link.
The problem is that the code lives in .py files, yet from Mathematica I can only load .NET assemblies which are DLLs.
So it ...
20
votes
1
answer
2k
views
Mathematica Functions from VBA
I'm trying to call Mathematica functions from VBA (Excel) using .NETLink without success.
(Yes, I know Mathematica Link for Excel exists. And yes, I know the proper thing to do is buy it. However, it'...
25
votes
2
answers
2k
views
Web Browser Screen Shot
I have Safari, Opera, Chrome, Firefox and IE installed how might a get a browser screen shot of a set of HTML code from inside Mathematica(for any of those browsers)?
(Image is optional)
The shortest/...
23
votes
1
answer
2k
views
Using .NET 4.0 from NETLink
Using Mathematica 8, I can check the version of the .NET framework used by NETLink as follows:
...
16
votes
2
answers
1k
views
Is it possible to embed the Mathematica editor?
Is it possible to embed a Mathematica window into a .NET application? I mean not just the interop, but actually making the notebook editor window part of a .NET form. Is this possible?
3
votes
1
answer
848
views
Converting Excel serial dates with NETLink
Excel serial dates are not straightforward to convert since they include non-existent dates, e.g.
{DatePlus[{1990, 1, 0}, 59], DatePlus[{1990, 1, 0}, 60]}
{{...
15
votes
1
answer
2k
views
Load a Mathematica Package via .Net code
I'm using C# to pass data to Mathematica and return graphs:
...
11
votes
1
answer
968
views
Running .NET/Link on Mono (On MacOS or any UNIX or Linux Distro)
Has anyone have any luck running .NET/Link on Mono?
When I run .NET/Link to call Mathematica from within a Mono program, this is the error message I receive.
...
9
votes
1
answer
382
views
Suppress Mathematica Kernel taskbar tab when using .NETLink
Is there a possibility to suppress the Mathematica Kernel taskbar tab when accessing it through .NETLink on Windows?
9
votes
1
answer
380
views
Launch Front End from .NET MathKernel and return result to .NET
Is it possible to launch a front end and open a notebook from a .NETLink kernel and return a result from the notebook to .NET?
In the code below "x" appears in the .NET textbox after 10 seconds but ...
8
votes
1
answer
315
views
How can multiple null terminated strings be handled in a DLL-function result?
I am trying to connect a classic System Dynamics tool (Vensim DSS) with Mathematica using a DLL that is included in Vensim DSS. Reading though the instructions on how to define DLL functions on how to ...
6
votes
1
answer
257
views
Run encoded package code through .NET/Link?
An earlier question of mine, Prevent package from being opened in a notebook interface, never received an answer, but Albert Retey's comments did lead me to an entirely different solution.
To secure ...
6
votes
1
answer
277
views
Prevent package from being opened in a notebook interface
I have a package which I need to deploy in a client's environment. It has proprietary code and solutions that I need to protect from prying eyes and inquisitive minds. The forum has discussed much ...
4
votes
1
answer
500
views
How to output from a .NET console app to an existing Notebook in Mathematica?
I'm wondering if its possible push output from a .NET console application to an existing Notebook that is open in Mathematica.
The reason I'd like this is that I want to use Mathematica as a "...
32
votes
2
answers
8k
views
How to programmatically extract mathematical formulas from Word with Mathematica 9?
I have a bunch of(1000+) Microsoft Word document in .Docx format. How can I programmatically extract the mathematical formulas from MS Word using Mathematica 9?
This is what example looks like (or ...
18
votes
2
answers
1k
views
Formatting Excel Borders with .Net
I have various tables generated in a Mathematica application and need to export this to MSExcel formatted in a specific way.
The ...
12
votes
1
answer
1k
views
MathLink error while calling a custom Mathematica function - MLGet out of sequence
I am trying to call Mathematica 10 from F#. Following the C# sample code found in the Mathematica directory, I have written the following F# code:
...
8
votes
1
answer
331
views
A Simplistic C# (.NET) Reloader
Can one write a very straightforward C# reloader akin to this Java reloader, that enables Mathematica-like usage of functions from existing C# code in string format, in an easy and elegant fashion ...
7
votes
2
answers
337
views
How to make a get image by a NETObject
This more then a .net question but I'm in Mathematica using.Suppose I want to get a image from my clipboard,so I make a function ...
7
votes
1
answer
1k
views
Efficiently deleting rows in many large text files
I have 500 text files each of about 200000 rows. I need to delete one row in each of them as fast as possible (later such operations will repeat). What is the best way to do this with Mathematica?
...
7
votes
2
answers
550
views
Web Browsing Automation: how to expand all comments under a blog post?
I wish to expand all the comments under a LiveJournal post for the purposes of saving the complete thread of comments. According to LiveJournal's FAQ when a post gets more than 50 comments they are ...
7
votes
0
answers
208
views
How to use named arguments in .NET/Link (COM interface to Excel)
I am using Excel from Mathematica through .NET/Link (specifically using the COM interface).
The following C# code adds a sheet after the last sheet:
...
7
votes
1
answer
730
views
How can I copy a figure to the clipboard in SVG?
I frequently include plots in my emails. The easiest and most reliable way I have found is to just capture a part of the screen using greenshot (Windows) and paste into the message.
Microsoft ...
5
votes
2
answers
779
views
How to access graphics from .NET in Mathematica?
I would like to use Wolfram.NETLink.MathKernel.Graphics to retrieve an image generated from a Mathematica command. Which Mathematica command do I use to do this?
...
4
votes
1
answer
96
views
How to pass the second parameter to COM object in NETLink?
I am trying to add a copy after the active sheet.
I can add it before as follows (this question was asked before but now I need the answer to make my workflow:
...
4
votes
1
answer
2k
views
Problem with .NET/Link - Unable to load DLL 'ml32i4.dll'
I have programmed this example for the last 6 years with various versions of Mathematica and .NET. This year I have moved to Version 10.0.2 and it doesn't work. I am using Visual Studio 12 for C#. My ...
2
votes
1
answer
972
views
Evaluate Notebook from .Net
How is it possible to send the whole content of an existing notebook to Mathematica for evaluation by using NetLink/C#?
1
vote
1
answer
79
views
How to use NETLink to activate an application window?
I have a excel application COM object for an active workbook.
excelApplication=GetActiveCOMObject["Excel.Application"]
<<NETObject[Microsoft.Office....
1
vote
1
answer
452
views
Using a pointer in NETLink
I am trying to use NETLink to control a camera exposure in our experiment. I have successfully connected to the camera and taken images. However, downloading it off the camera is trickier. The code ...