All Questions
Tagged with ironpython clr
39 questions
0
votes
0
answers
55
views
Python .NET Winforms - If SortedColumn returns Null, an error is generated
All,
I am working a Winforms Form that has a DataGridView. I have gotten everything working the way I want with the exception of one last ask.
If a user makes changes (or not) to a child form of mine ...
1
vote
1
answer
2k
views
How to load an excel file in IronPython?
I am trying to load an excel file within an IronPython script, which is embedded within a software.
I tried to do this with the following code:
import clr
clr.AddReference("Microsoft.Office....
0
votes
0
answers
76
views
Python CLR Winforms - DataRowView object returns as values in a ComboBox
All,
When using Python CLR (IronPython) to populate a ComboBox using the DataSource method, my data returns as a bunch of separate System.Data.DataRowView objects.
How do I turn those into the values? ...
0
votes
1
answer
104
views
Python CLR Winforms - Passing data between .NET Winforms
I have a fairly simple task that has eluded me when using Python to generate and automate .NET WinForms. How do I pass data between forms?
I've tried everything: using global variables, using ...
0
votes
0
answers
114
views
IronPython running UI on a separate thread and opening a file dialog WinForms
I am having a deadlock when trying to open a file dialog from a separate thread using WinForms:
class Form(System.Windows.Forms.Form):
def __init__(self):
button0 = Button()
...
-1
votes
1
answer
241
views
Python 2.7 (SharpDevelop 4.4) Re: adding assemblies using CLR .Net
I need to find a solution to a Python problem. My code is included in the
pictures for SharpDevelop 4.4. As you can see in one of the pictures (the Python
console), it recognizes the clr.AddReference()...
1
vote
2
answers
4k
views
Is it possible to embed Python script with many packages to C#?
I need to embed some python scripts in C# application. The problem is these scripts use many packages like numpy, openCV etc. I've read that Ironpython may handle such embedding but it's limited to ...
0
votes
0
answers
286
views
Python.NET - Trying to execute a stored procedure in SQL Server
All,
I am hoping someone can assist me with trying to get a stored procedure to run using IronPython and CLR.
All I am trying to do is get the below stored procedure to run. When it runs and gets to ...
0
votes
0
answers
207
views
How to access return values from COM function in IronPython?
I am trying to use IronPython to interact with a program which exposes COM API for many functions. The COM object handle is instantiated using following.
from System import Activator, Type
com_obj = ...
0
votes
1
answer
283
views
Python.NET WinForms - Loop through each combobox
What is the best solution to loop through each combobox (I have four) and grab it's text?
Some documentation (via c#) says to create a list of comboboxes but I am not sure how to port that over to ...
0
votes
0
answers
907
views
Python.NET - Sending data to a DataGridView
To give some background, I am attempting to use Python to give some of my users an interface through a third-party program (that already has IronPython embedded) to add, edit, and delete records from ...
0
votes
2
answers
5k
views
Python - "KeyError : System.Object" - Pyadomd - Querying a SSAS Data Source
Working on a project where I am trying to query a SSAS data source we have at work through Python. The connection is presently within Excel files, but I am trying to reverse engineer the process with ...
0
votes
1
answer
190
views
How to reference an assembly which is built against version 'v2.0.xxx' of the runtime in IronPython 2.7?
I am trying to create wrapper for an assembly (thirdPartyDLL) which was built against version 'v2.0.50727' of the runtime. But whenever I try to reference it in IronPython code, it always results in ...
29
votes
4
answers
49k
views
Python: AttributeError: 'module' object has no attribute 'AddReference'?
Am trying to use clr.AddReference and clr.AddReferenceToFile to import an assembly, but python(2.7) keeps making this error:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in ...
1
vote
2
answers
136
views
Creating thumbnail images in IronPython using CLR. Passing delegate troubles
I am trying to create a thumbnail image using IronPython utilising the Common Language Runtime.
Coming from a Visual Basic background I am struggling with the concept of passing a delegated function ...