Select to view content in your preferred language

Problems with Python Add-in

2849
2
08-17-2015 08:12 AM
AaronMenza
Occasional Contributor

I've put together some Python code and created a Python Add-in toolbar & button which allows me to run a report on a selected feature and immediately opens the report as a PDF.  I have it working perfectly.  The problem is that it only works perfectly in one specific MXD.  When I attempt to use it in another MXD, or install it on another computer, the button does not work (the button's icon does not even display).  The button also does not work on another computer when I use the MXD that works on my computer.  Since the button is working in one MXD, I suspect that the problem does not have anything to do with the code itself, but with the add-in wizard?  I'll attach the code anyway.

Any ideas?

Thanks

Aaron

Tags (1)
0 Kudos
2 Replies
WesMiller
Deactivated User

Do you have a layer named "Layer to be reported on" in the other mxd's?

edit:

The name must be the same. You are also using report writer are the fields the same in the other layers you want to report on. You can change the field assignments, but it takes extra steps

0 Kudos
AaronMenza
Occasional Contributor

Yes, I've attempted to use the MXD that works on my computer on other computers without luck.  I've even tried creating a new MXD that exactly matches the needed layer.  The button will not work in this new MXD either.

0 Kudos