Questions tagged [.netlink]
Questions about integrating Mathematica and .Net using the .NET/Link functionality provided with Mathematica.
117
questions
1
vote
1
answer
78
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....
3
votes
0
answers
29
views
Does .NET/Link work with .NET 7.0 assemblies?
Is it possible to call methods in a .NET 7.0 assembly from Mathematica? If so, then how is that accomplished?
This is my first foray using .NET/Link. I was able to get a test project working that ...
0
votes
0
answers
60
views
Unable to load DLL 'ml32i4.dll' when calling .NETLink for .NET Framework 4.6.1 application
I have added Wolfram.NETLink to a C# .NET Framework 4.6.1 application via NuGet. NuGet installs this to the C:\Users\[user]\.nuget\packages\wolfram.netlink\1.7.1 ...
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:
...
0
votes
0
answers
66
views
Pass parameters to notebook being opened?
Is there a way to pass a parameter to a notebook which is being programmatically opened?
For example, I would like to be able to pass a parameter to myNotebook.nb
...
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 ...
0
votes
1
answer
355
views
Extract information from function definition returned by DefineDLLFunction
I have an application using DefineDLLFunction whose output is:
Function[Null, If[NETLinkDLLPrivatecheckArgCount["DRV_AOVoltageOut", {##1},2],
...
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:
...
1
vote
0
answers
34
views
MathKernel.exe not being killed while running from .NET C#
I am using Mathematica from .NET (C#) to compute the result based on some input, following is the code snippet of C#
...
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
...
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:
...
2
votes
1
answer
144
views
How can I connect Mathematica to an SAP/ERP server?
I am trying to get some references for accessing an SAP/ERP server from Mathematica. It has been suggested that possibly JLink or NetLink could be used. Assuming that I have the server address, ...
5
votes
1
answer
166
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 ...
2
votes
0
answers
52
views
On the Force32Bit option of NETLink
It seems that the 32-bit option of NETLink has been planed to be ommited since 12.0+. I found that the code
...
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 ...
0
votes
0
answers
103
views
About using C# to load a package in a Mathematica .m file
I tried to load my .m file in the following way;
...
2
votes
2
answers
400
views
GetProcessMemoryInfo
The GetProcessMemoryInfo from psapi.dll is a helpful function that can be used to monitor the memory wolframkernel.exe used, where how much memory can be used and is actually used by wolframkernel is ...
3
votes
0
answers
64
views
How to do simple operations on the .Net side using NETLink`?
I am trying to learn how the NETLink functionality works. Consider the following example:
I import the library:
...
9
votes
1
answer
726
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 ...
2
votes
1
answer
117
views
Does any know how to get the paths of current opened locations in file explorer?
Does anyone know if there is a builtin way to get all opened locations in the file explorer?
Like for browsers, the browser itself remembers the last opened locations. So even if it crashes one can ...
1
vote
1
answer
458
views
Evaluate Mathematica from C#
Kindly help.
I want to evalaute a mathematica notebook using C#. I have made a mathematica notebook named 'pureimpure.nb'. I like to evaluate it from dot net using the command
...
5
votes
1
answer
202
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. ...
0
votes
0
answers
163
views
Unable to load DLL assembly with NET/Link
I am using Math'a 12 on iMac OS 10.14 to load a DLL. To simplify I stored the file in the NoteBook directory, however a listing of assemblies in the directory gives me an error. Ive tried installing ...
1
vote
0
answers
230
views
How to integrate a function written in fortran that solves a set of nonlinear equations into mathematica?
I am trying to integrate the solver for the set of nonlinear equations link written in Fortran language into mathematica . To do so i developed a function called netlib based on the explanation given ...
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/...
2
votes
1
answer
187
views
DefineDLLFunction returning array
I have an external "C" DLL function which returns a pointer to an byte array as well as the number of array elements (bytes)
...
3
votes
0
answers
209
views
Use NETLink to call C# code that uses packages from nuget
I can successfully load and run methods of a static class I have written in c# using:
...
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 ...
4
votes
0
answers
64
views
Is it possible to load F# types using .NET/Link?
Suppose I define a type in F# such as:
...
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 ...
6
votes
1
answer
151
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 ...
4
votes
1
answer
77
views
How to show plot or graphics on Form or PictureBox in NETLink?
How to show the plot or graphics on the image property of a form or picturebox with NETLink?
...
2
votes
1
answer
62
views
How to make indepent linking workspace when using NETLink?
I've created two packages file as
CompnentALink.m
CompnentBLink.m
the functions
InstallNET[] and ...
9
votes
2
answers
255
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:
...
5
votes
1
answer
112
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 ...
1
vote
0
answers
63
views
How to pass parameter to netlink objects
NETBlock[
InstallNET[];
excel=GetActiveCOMObject["Excel.Application"];
excel@ActiveWorkbook@SaveAs["blahblah.xlsb"]
];
How do i pass the fileformat ...
3
votes
1
answer
81
views
Why some Graphics cannot be captured by MathLink in NETLink?
I'm trying test on calling mathematica function from .NET application by running demo application MathKernelApp.exe which could be located at
...
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:
...
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 ...
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:
...
2
votes
1
answer
107
views
How to convert an array in C# .net to ListPoint for calling ListPointPlot3D?
I have a two-dimensional array in C# (using .Netlink)
double[][] rho
The values of the array change dynamically as it represents some process in time.
I have ...
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 ...
1
vote
0
answers
106
views
How to send Map[Plus[1, #] &, {1, 2, 3}] to Mathematica from C# via IKernelLink?
Here is a piece of my code
...
1
vote
0
answers
122
views
Extract information from functions that returns nested structures with DefineDLLFunction
Where can I find examples devoted to extracting information from functions that returns nested structures with DefineDLLFunction in Mathematica?
The only example I ...
3
votes
1
answer
296
views
How to control which version of Mathematica .NET/Link uses
I have three versions of Mathematica installed: 7.0.1, 11.0.1 and 11.1.1 but my test .NET/Link application will only use version 7. In Visual Studio I have referenced the ...
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 ...
3
votes
0
answers
135
views
FORTRAN complex number passing to Mathematica through NETLink
I used to use NETLink to call FORTRAN functions or subroutines compiled into a dll file. This works very well until now that I want to call a function which has complex arguments and returns a complex ...
1
vote
0
answers
87
views
Optimization using NETLink failing [closed]
I define a function called f[x], which gives a numerical result interacting with an external free software called FEMM, using NETLink.
This function works properly and the following codes give the ...
4
votes
1
answer
170
views
How to find all package we can LoadNETType
After we Needs["NETLink`"] and InstallNET[];,we can use load many .net packages by ...
3
votes
1
answer
136
views
How to create .NET "System.Windows.Clipboard"?
I have followed the instructions for creating a blank .Net form and it works.
...