Select to view content in your preferred language

Print Widget viewer 3.0

4746
14
04-23-2012 04:13 PM
AHay
by
Deactivated User
in the example of the flex viewer 3.0 the print widget is actually useful and makes a map not just an image
from this address
http://resourcesbeta.arcgis.com/en/help/flex-viewer/live/index.html

BUT the "whats new in 3.0" has the same old print widget listed
http://resourcesbeta.arcgis.com/en/help/flex-viewer/concepts/index.html#/Print_widget/01m30000003600...

Will the version 3.0 print widget have the functionality of that on the demo site or the limits of its current form?
Tags (2)
0 Kudos
14 Replies
AHay
by
Deactivated User
Looking closer at whats new in 3.0 ( i.e reading properly!)
i saw this
[INDENT]Print widget changes
High-quality printing when configured to use an ArcGIS 10.1 server with an export web map utility service published. If not available, falls back to quick printing (as in earlier versions).[/INDENT]

what is the  "export web map utility " ?? is this the Jave SOE print widget by Tom Lux ?
or have i completely missed something?
0 Kudos
MehulChoksey
Esri Contributor
The Print widget at 3.0 continues to work at it did in prior versions. In addition to that, Print widget now supports Export webMap task introduced at 10.1. see: http://servicesbeta2.esri.com/arcgis/sdk/rest/index.html?gp_exportwebmaptask.html
Sample config for the print widget will be:

<?xml version="1.0" ?>
<configuration>
    <!-- change this URL to your own Export Web Map Task (requires ArcGIS Server 10.1), or just remove the taskurl tag to get quick printing -->
    <taskurl>http://servicesbeta2.esri.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task</taskurl>
</configuration>


Note the taskurl tag.

The documentation at the link you provided needs to be updated.
0 Kudos
ChrisNorth
Esri Contributor
Hi, I've been playing around with the new print Widget and 10.1 Print task in 10.1 and it works great! 

But.. it seems the <layouttemplates defaultvalue="XXX"/> tag (as shown in the sample "PrintWidget_exportlessoptions.xml") is being ignored. I specified <layouttemplates defaultvalue="Letter ANSI A Landscape"/> and it defaults to MAP_ONLY in the dropdown.

When I put in the <formats defaultvalue="PDF"/> it shows PDF by default in the dropdown.

Is there a link to updated documentation for the tag references for the new print widget?

THanks,
Chris
0 Kudos
JoshWhite
Honored Contributor
Hi, I've been playing around with the new print Widget and 10.1 Print task in 10.1 and it works great! 

But.. it seems the <layouttemplates defaultvalue="XXX"/> tag (as shown in the sample "PrintWidget_exportlessoptions.xml") is being ignored. I specified <layouttemplates defaultvalue="Letter ANSI A Landscape"/> and it defaults to MAP_ONLY in the dropdown.

When I put in the <formats defaultvalue="PDF"/> it shows PDF by default in the dropdown.

Is there a link to updated documentation for the tag references for the new print widget?

THanks,
Chris


I just added <layouttemplates defaultvalue="Letter ANSI A Landscape"/> and it does default to that.  Perhaps something changed before the final release?  I do have a question though, how do I change the templates?  The templates aren't terrible but I would like to know if I could enhance them by adding my logo, forcing the scale bar to appear a certain way, excluding legend items, etc.  All in all, I agree, this is a MAJOR enhancement to the original print widget.  Also, how do I force the usescale to be checked?  I want it to print what the user sees on the screen, realizing of course that this will be affected by their screen size.  It seems the best alternative is to have the default be landscape instead of Portrait as most monitors are setup in a portrait mode but you still lose the scale a bit.  My example is that at the default extent the force scale is 903 while the print scale without the check is 1561 as reported on the print.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
JoshWhite
Honored Contributor
Thanks Dasa, I had actually seen this in the past but it seemed like Greek to me at the time.  Now that I have a bit more experience with Server 10.1, I understand what it is saying.  Now, let's see if I can make it work.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
Juan_CarlosFranco
Esri Contributor
... Also, how do I force the usescale to be checked? ...


You can have the use scale checkbox selected automatically by adding the following to your Print Widget config:

<usescale>true</usescale>
0 Kudos
JoshWhite
Honored Contributor
ok, I was able to get that to work using a template sort of.  First of all, if I don't enter a value in Title in the widget, Title is what appears.  Maybe I should just put something like My Map as a default in the xml?  Second, I added a Legend but all I get for that is the word Legend on the printout and no legend.  Is there a setting that needs to be made to make this work?  Lastly, I put a logo on the template and it does not appear.  I attached what I am seeing.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JoshWhite
Honored Contributor
I guess I'll just stay with the out of the box version until I hear from somebody on my questions.  Trouble is the scale bar is in miles rather than feet.  The smallest scale I use is about 1:50000 (1 inch=.79 miles) and that is rare so miles doesn't really do the trick for me.  Most of my printouts for this widget will involve neighborhood or property level images so 1:1500 or larger.  What would really help me is to be able to access directly the templates that are currently out of the box so that I can see how they work.  Then somebody could just change out the templates in that folder if they don't like them at all.  This would keep us from having to have yet another service and one that we can't put in the utilities folder (also odd).  I think I will put this on the Ideas website.  I'm guessing that unless there is a 10.1.1 that I'll have to wait till 10.2 to get any sort of changes made which is a good two years out.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos