POST
|
I found that this solution overcame the client cache problem: private void printTask_PrintCompleted(object sender, PrintEventArgs e) { //open exported map in new browser window Random random = new Random(); Uri u = new Uri(e.PrintResult.Url + "?Unused=" + random.Next().ToString()); System.Windows.Browser.HtmlPage.Window.Navigate(u, "_blank"); }
... View more
01-04-2013
05:47 AM
|
0
|
0
|
236
|
POST
|
I should note that the URL we are using is utilizing SSL and our ArcGIS Service is not using SSL. Cross domain support over SSL needs to be explicetly authorized in the ClientAccessPolicy file: <access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="http://*"/>
<domain uri="https://*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy> Not sure of the syntax with CrossDomain but I guess there is something similar.
... View more
11-06-2012
05:12 AM
|
0
|
0
|
245
|
POST
|
Thanks Dominique. I really like the simple solutions. Chris
... View more
10-12-2012
09:05 AM
|
0
|
0
|
213
|
POST
|
Thanks, I want to have the user set up the layers by checking all the layers in the legend that they want to view, then hit a button that saves the configuration. So far I have been able to save the visible layers, but that does not include the layers that are checked but not visible due to scale dependencies. Do you know of a way to find the checked layers in the legend? This is what I am using to find the visible
foreach (LayerItemViewModel livm in _legend.LayerItems)
{
if (livm.Layer.ID == "VantageLayers")
{
var subLayerItem = livm.LayerItems.FirstOrDefault();
for (int i = 0; i < subLayerItem.LayerItems.Count; i++)
{
if (subLayerItem.LayerItems.IsVisible)
{
sb.Append(subLayerItem.LayerItems.SubLayerID + Environment.NewLine);
sb.Append(subLayerItem.LayerItems.Label + Environment.NewLine);
}
}
}
Thanks, Chris
... View more
10-05-2012
11:32 AM
|
0
|
0
|
161
|
POST
|
Hey, I am using Silverlight 5, skd 3.0 AGS 10.1. I have set up a test of the print task, and it works if I don't have my dynamic map service turned on. When I turn on my layers, it returns a null PrintResult, without much more info in the error message. The dynamic service seems to work fine. The server is a virtual machine it that makes any difference. Anybody have any ideas why the print task won't work with the dynamic map service turned on? Thanks, Chris
... View more
08-24-2012
01:50 PM
|
0
|
0
|
346
|