Questions tagged [.netlink]

Questions about integrating Mathematica and .Net using the .NET/Link functionality provided with Mathematica.

Filter by
Sorted by
Tagged with
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 ...
iav's user avatar
  • 1,995
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 ...
WolframFan's user avatar
  • 1,412
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 ...
john's user avatar
  • 261
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 ...
Guanghui HE's user avatar
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 ...
Meh's user avatar
  • 1,637
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'...
kale's user avatar
  • 10.9k
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/...
William's user avatar
  • 7,575
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: ...
WReach's user avatar
  • 68.4k
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?
Dmitri Nesteruk's user avatar
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]} {{...
Chris Degnen's user avatar
  • 30.8k
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: ...
WolframFan's user avatar
  • 1,412
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. ...
user10037's user avatar
  • 213
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?
alxppp's user avatar
  • 93
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 ...
Chris Degnen's user avatar
  • 30.8k
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 ...
gwr's user avatar
  • 13k
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 ...
Jagra's user avatar
  • 14.3k
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 ...
Jagra's user avatar
  • 14.3k
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 "...
Contango's user avatar
  • 463
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 ...
Xiang Li's user avatar
  • 515
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 ...
BlueMac's user avatar
  • 711
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: ...
Shredderroy's user avatar
  • 5,117
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 ...
RunnyKine's user avatar
  • 32.9k
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 ...
yode's user avatar
  • 26.4k
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? ...
Alexey Popkov's user avatar
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 ...
Alexey Popkov's user avatar
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: ...
David Creech's user avatar
  • 1,108
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 ...
Gustavo Delfino's user avatar
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? ...
sav's user avatar
  • 153
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: ...
user13892's user avatar
  • 9,113
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 ...
Kieran Mulchrone's user avatar
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#?
user6511's user avatar
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....
user13892's user avatar
  • 9,113
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 ...
Lost in Knowledge's user avatar