Select to view content in your preferred language

Advanced print solution

53492
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
DavidCaussin
Deactivated User
The error message "500" is gone and i can read the pdf file in IE but it is still empty ....

it seems that the URL to the map service is not good .... 😞
0 Kudos
TomSchuller
Frequent Contributor
Hy,
could you say what the error500-problem was? Maybe it's related with the current problem.
does the generated mxd still contain invalid layers?

Could you manually add the mapservice with the "Add data" button (use AGS internet)?
If yes, could you post a printscreen of the "source"-tab in the layer properties window?

Tom
0 Kudos
EricVenden
Frequent Contributor
David,
your url was cutted off. But I don't think that the problem is related to the SOE
The SOE is generating the pdf in the arcgisoutput folder.
This seems to be something of your IIS configuration.
Could you try to open an other file in the arcgisouput direcory as url from the IE (or create a simple html file in it to control the access)?
If other files are working, you should check the file permissions.



Eric,
I'm looking for implementing "inch/feet" support.
You are saying that 1 mapservice isn't displayed.
Could you post the complete url and the mxd?

Tom


Good morning Tom,
Thank you for looking into the inch/ft support..with my limited coding abilities I've hit a wall on how to succesfully change the existing code to support this.  I can get parts completed...but not all.

The full URL to the parcels map service is:  http://gis-srv3.village.gurnee.il.us/ArcGIS/rest/services/Parcels/MapServer

I attempted to attach the published Parcels mxd - if this is what you want...but it is too large....I actually publish the msd of this document...I have attached a screenshot of the mxd as well as a screenshot of the service info.
Thank you
Eric
0 Kudos
TomSchuller
Frequent Contributor
Eric,
I meaned the url of the PrintSOE (fiddler) and the generated mxd in the arcgisouput.

Tom
0 Kudos
EricVenden
Frequent Contributor
Tom,
I have attached what you requested.
Thank you
Eric
0 Kudos
DavidCaussin
Deactivated User
Hi Tom,

First of all the "error 500" came from the settings of the web server.

The pdf extension was not allowed by the web server request filter.

for the rest, i'll test in the morning. it seems to be a problem with the URL of the layers.

I only work in intranet, but i think that it's not the problem.

David
0 Kudos
DavidCaussin
Deactivated User
Tom, I only use server connection for my work.

I don't see the internet connection and when i'll use add from arcgis.com, there is a proxy problem
😞

but i could use a map service from another society in flex viewer ...

Something else my arcgis desktop 10 is local and not installed on the server with the arcgis server.

When i point the data source to the good datas, no problem but the connection (in properties of the layer) become LAN instead of INTERNET...

Sorry for my ignorance ....

David
0 Kudos
DavidCaussin
Deactivated User
I don't know if it could pose a problem, but when i copy the URL you said from flash builder, and paste it into a navigator, the URL is always troncated.

Thus the parameters of the map services are not used...

Do you think that it could be the problem???

Thanks
0 Kudos
TomSchuller
Frequent Contributor
To get the full url, you could also use "Fiddler".

So, you can't add your services as "internet services" in ArcMAP.
This functionality is required to get the PrintSOE running.

Could you check to get this running?

Tom
0 Kudos
EricVenden
Frequent Contributor
Tom,
Just checking in to see if my latest posts got you the information you needed.
Thank you
Eric V
0 Kudos