Select to view content in your preferred language

Advanced print solution

53524
296
02-19-2011 10:52 AM
TomSchuller
Frequent Contributor
Please find in the codegallery my first version of an advanced print solution:
http://www.arcgis.com/home/item.html?id=6809086326ea4c76bf026a32bb9dd698

The backend is developed in Java as a ServerObjectExtension: PChPrintSOE

The communication to the SOE is realized by the REST.
So, any client can be used Flex, Javascript, ...
I just created a simple FlexWidget.

Some features:
- full print over the rest api (usable by any client)
- export to pdf,jpeg,png,emf and mxd!
- view paper layout extent live on map
- make print on a "template" mapservice by keeping the predefined layout
- multi-mapservices/multi-server support
- add graphics on the map view positioned in map units
- add elements on the layout view positioned in paper units like scalebar, scaletext


The code is under full development:
- support for wms layer
- code clean up and reorganization

Any suggestions, remarques or help is welcome.

Live demo with public Esri mapservices (last print button):
http://gis.pch.etat.lu/flexViewerPrint/
   - use this print widget with your PChPrintSOE-enabled mapservices for high quality
   - draw first some graphics with the DrawWidget prior making your print (in mxd format)
Tags (2)
0 Kudos
296 Replies
TomSchuller
Frequent Contributor

Burns86,
- to modify the scales, you have to edit the PChPrintWidget.xml file.

I didn't yet implemented an ImageService as I didn't worked yet with ImageServices.
Did you know a public ImageService on which I can make some tests?

Tom

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
TomSchuller
Frequent Contributor
Robert,
thanks.
Also using this Print?

Tom
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tom,

   No I am not using your print widget and SOE, I just try to monitor all post on the Flex forums.
0 Kudos
TomSchuller
Frequent Contributor
Robert,
did you already played with the PrintWidget in the Flex3/AGS10.1? Could you share any experience?

Tom
0 Kudos
TomSchuller
Frequent Contributor
Burns86,
I just added support for ArcGISImageServiceLayer in my latest commit:
http://bitbucket.schuller.lu/pchprintwidget/changesets

Let me know it it's ok or need to be improved.

Tom
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tom,

   Let me give you my opinion after 10.1 RC1 testing.
0 Kudos
evanpicard
Emerging Contributor
I'm pretty sure the firewall is turned off completely, but I'll give it a shot when I'm back in the office on Friday.  Thanks for the help.
Evan



The firewall is turned off.
I restarted IIS. 
I can successfully ping both the IP address and the server name.
java -version works successfully.
administrator is a member of agsadmin

I am still stuck, it will not work.  same errors.

Where can I find information on the domain? I dont recall specifying one.  this is an internal server, I have an IP address (172.26.197.91), and a servername (mwellagsserver) , that point to the same thing. 

please help!

C:\Program Files (x86)\ArcGIS\Server10.0\java\tools\soemanager>soemanager.bat -a 172.26.197.91 mwellagsserver administrator aVp105 PCHarcgisSOE.jar

C:\Program Files (x86)\ArcGIS\Server10.0\java\tools\soemanager>java -classpath "C:\Program Files (x86)\ArcGIS\Server10.0\java\lib\arcobjects.jar;C:\Pr
ogram Files (x86)\ArcGIS\Server10.0\java\tools\soemanager\SOEManager.jar" com.esri.arcgis.tools.SOEManager -a 172.26.197.91 17.26.197.91 administrator
 aVp105 PCHarcgisSOE.jar

Error: AutomationException occured while connecting to server 172.26.197.91.
Please check if username and pwd are correct or are members of agsadmin group.
AutomationException: Access is denied.

Disconnecting from ArcGIS Server "null"...Done.

C:\Program Files (x86)\ArcGIS\Server10.0\java\tools\soemanager>java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode)
0 Kudos
JustinConner
Frequent Contributor
Could someone please explain the toRemoveLayoutElements tag? How does this need to be formatted and what exactly is it looking for. Could you share an example?
0 Kudos
MattGiles
Deactivated User
Hi Tom,
Just got around to testing the new widget with ImageServices and it seems to work flawlessly! Thanks for your help in adding scales as well!

One more thing - I assume i do not have to add the printSOE capability to each of my ArcGIS services since my ImageService does not have this capability and your print captured it anyways...?

Thanks again Tom!
0 Kudos