Questions tagged [.netlink]

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

Filter by
Sorted by
Tagged with
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
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
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,595
24 votes
2 answers
2k views

How do I call a 32-bit DLL using .NET/Link and a 64-bit version of Mathematica?

The .NET/Link tutorial shows how to call functions defined in DLLs. The example uses the GetTickCount Win32 API function ...
Szabolcs's user avatar
  • 234k
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.7k
22 votes
2 answers
641 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
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
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
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,996
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
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
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
15 votes
1 answer
1k views

Is it possible to use C# LINQ from Mathematica using .NET/Link?

Using Mathematica's .NET/Link (NETLink`) package, is it possible to call out to .NET's LINQ facilities for list manipulation and other operations?
sblom's user avatar
  • 6,453
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
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,239
11 votes
1 answer
974 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
2 answers
261 views

Problem with Excel operation in NETLink way

I'm using the NETLink package to build a Excel file and trying to fill it with some data as this: ...
Jerry's user avatar
  • 2,459
9 votes
1 answer
387 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
388 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.9k
9 votes
1 answer
728 views

Using Mathematica as a data visualization front end for .Net applications?

I have a C# application that has 3-dimensional data that I wish to plot. Controls in C# for surface modeling are, in my experience, rather limited. I wish to have my C# application send the 3D point ...
JohnC's user avatar
  • 201
8 votes
2 answers
589 views

How can I create an object in NETLink from System.Collections.Generic.List

I am using NETLink and I am trying to construct the following .NET object List<string> list = new List<string>(); My first question is how can I load ...
Athanassios's user avatar
  • 1,291
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
  • 33.1k
8 votes
1 answer
316 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
  • 13.4k
8 votes
0 answers
272 views

Socket communication and player pro

I'd like to create a simple communication channel between MMA and the animation package 'Maya'. This is possible over sockets ( very simple, just sending and receiving strings). I've got this working ...
Cuboid's user avatar
  • 1,421
7 votes
2 answers
349 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.5k
7 votes
1 answer
740 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
7 votes
2 answers
556 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
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
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
6 votes
2 answers
303 views

getting Mathematica messages in .NET

For example, equation Sin[10*x]-Log[x]==0 can't be solved by NSolve. Mathematica returns message "NSolve::nsmet". How can I get messages in my c# program? ...
user10884's user avatar
6 votes
1 answer
279 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
6 votes
1 answer
156 views

How to use VBA types with UNDERLINE in it's name in NETLink?

When coding with VBA functions in NETLink, I need the enum reference. It's ok to get the ...
Jerry's user avatar
  • 2,459
6 votes
1 answer
338 views

Using the OSX Cocoa-APIs from Mathematica via Link-Technology

I'd like to access Cocoa-API's (Foundation, AppKit) from Mathematica and have researched the following ways: CocoaLink: A deprecated Package by Rob Schlofield from 2009, which is still available on ...
Xacobeo2002's user avatar
6 votes
1 answer
259 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
701 views

Calling a dll from Mathematica

I would like to call the following function from Mathematica ps3000aOpenUnit PICO_STATUS ps3000aOpenUnit ( short * handle, char * serial ) I define the ...
Jozef's user avatar
  • 91
6 votes
1 answer
262 views

Problems creating CDF via .NET DLL

I have read several posts at SE and googled a lot, but I still have difficulties to create a CDF via .NET. My first try was the Wolfram example MathKernelApp.exe ...
32u-nd's user avatar
  • 963
6 votes
0 answers
211 views

In .NET/Link, how do I not open multiple kernels?

I'm writing an ASP.NET page intended for multiple users. On the backend we have datatypes that are primarily mathematical, and interact with Mathematica for string-to-double evaluations, among others....
Twiffy's user avatar
  • 369
5 votes
2 answers
787 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
5 votes
1 answer
316 views

Get .NET Link to work on Raspberry Pi

Is it possible to get the .NET Link working on Raspberry Pi? I understand that Linux and MacOS versions of Mathematica come with .NET Link running on Mono and now even possibly under new open-source ....
den.run.ai's user avatar
5 votes
1 answer
117 views

Problem with inserting a picture into Excel sheet in NETLink way

I'm using the NETLink to work with Excel object, there be differences to write code according to the ...
Jerry's user avatar
  • 2,459
5 votes
1 answer
174 views

Passing an image to Kernel via NETLink

I have created a specialized image analysis method in Mathematica that takes an image and returns a marked up image with some detection output. In order to allow others to feed images into my ...
ahhhh's user avatar
  • 305
5 votes
1 answer
208 views

Can I distribute Wolfram.NETLink.dll with an open-source project?

I am developing an open-source suite of Windows Workflow Foundation activities for the Wolfram Language to use with UiPath, a Windows automation platform. I built it using the Wolfram.NETLink library. ...
Joe Iaquinto's user avatar
5 votes
0 answers
786 views

How to extract structured array data from DefineDLLFunction in Mathematica

I want to use my Bluechip PCI-ADC acquisition card in Mathematica via his dynamic link library “Bcdll32.dll”; (used to access functions on my PCI data acquisition cards). My problem is the function “...
rosu_constantin's user avatar
5 votes
0 answers
212 views

Embed a Microsoft RichEdit 8 control in a Mathematica notebook using .NETLink?

Does anyone know whether or not it's possible to embed a RichEdit 8 control within a Mathematica Notebook using .NETLink? The goal here would be able to both view and edit mathematical text typeset ...
StackExchanger's user avatar
4 votes
2 answers
9k views

A .NET exception occurred: System.IO.FileLoadException:Could not load file or assembly

Note: Answering my own question as a wiki for future reference. When loading a .Net DLL: ...
WolframFan's user avatar
  • 1,412
4 votes
1 answer
438 views

CreateCOMObject doesn't work on home edition

I can call an application named "PinPoint.Plate" with Visual Basic, Python and Mathematica version 8 but not with version 9. I can still call Excel though. How can I fix this? This is what I did: <...
PaulB's user avatar
  • 51
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
4 votes
1 answer
179 views

How to find all package we can LoadNETType

After we Needs["NETLink`"] and InstallNET[];,we can use load many .net packages by ...
yode's user avatar
  • 26.5k
4 votes
2 answers
804 views

NetLink Exporting Images doesn't work (Unknown string escape)

Exporting Image files (intermittently) doesn't work: I get messages back indicating the error is to do with escaping characters: ...
WolframFan's user avatar
  • 1,412
4 votes
1 answer
102 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,303