|
POST
|
Hi, I post the error message here, hopefully somebody could help me solve the problem. Thanks in advance. // error message: Please see the inner exception for more details. at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)\n at ESRI.ArcGIS.Client.Layer.Initialize()\n at ESRI.ArcGIS.Client.Bing.TileLayer.imageryService_GetImageryMetadataCompleted(Object sender, GetImageryMetadataCompletedEventArgs e)\n at ESRI.ArcGIS.Client.Bing.ImageryService.ImageryServiceClient.OnGetImageryMetadataCompleted(Object state)");
... View more
10-18-2010
10:32 AM
|
0
|
0
|
1495
|
|
POST
|
Hi, A few times, most time, it just blank. Actually, this morning, it showed up, I got the Bing map showed up on my test application, then I left for a meeting, when I came back, I could not get the Bing map show up again, and the ESRI samples ( the link on your post) just blank. Even I didn't change anything. Thanks again.
... View more
10-18-2010
08:46 AM
|
0
|
0
|
1495
|
|
POST
|
Hi, Thanks, tried all of them you mentioned, I never got the Bing Map displayed. For ESRI Silverlight API samples, only a few times, I got the Bing Map sample displayed, most time, the samples just stayed blank, I changed the browser setting, delete all browser history, still could not make Bing Map show up on ESRI samples. Certainly, never displayed on my own test applications. This make me wonder that if it is good idea to use Bing Map for ArcGIS Server silverlight API right now. Again, thanks for your reply.
... View more
10-18-2010
06:13 AM
|
0
|
0
|
1495
|
|
POST
|
I tried to create key with ArcGIs server manager ( version 10) and Map Account center. Neither of them works, I never got the Bing Map displayed.
... View more
10-18-2010
06:00 AM
|
0
|
0
|
533
|
|
POST
|
Hi, I created a key from ArcGIS server manager ( 10), used the key for bing map layer , but Bing Map stayed blank, I used the Bing Map account center, created another key, it didn't work either. I tried to run the ESRI Bing Map samples with these keys, it didn't work either. Never get the Bing Map out. Thanks in advance for any help on this problem .
... View more
10-15-2010
01:52 PM
|
0
|
10
|
2431
|
|
POST
|
1. Create a usercontrol for printing or print preview, in this control, desgin your layout, you can put map, legend, whatever in this control 2. use PrintDocument, PageVisual etc. It works fine for me. Hope the following link could help you a little: http://www.markusegger.com/blog/Development.aspx?messageid=30f65164-2185-49d8-b65a-4ddd8c2e1380
... View more
09-30-2010
06:13 AM
|
0
|
0
|
2943
|
|
POST
|
See this sample: http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3
... View more
09-17-2010
08:19 AM
|
0
|
0
|
527
|
|
POST
|
Hi, Where you get PDFExporter.cs file? can yout let me know, I forget where it is. Thanks
... View more
09-17-2010
06:14 AM
|
0
|
0
|
615
|
|
POST
|
After read your post, I tested one of my old application which started from Showcase sample, it was fine for me. I think the problem may not from dragablewindow, try to change your layout, for example, put map, Nav gird, dragable window on the same parent Grid to see if it will work.
... View more
06-04-2010
11:24 AM
|
0
|
0
|
948
|
|
POST
|
Yes, PrintMap is just a userControl, the following is the simple one for test: <UserControl x:Class="IrvingMap.PrintMap" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White"> <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10,10,10,10" > <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="#36648B" CornerRadius="6" BorderThickness="2" Background="White" Height="50" > <TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="2" TextWrapping="Wrap" Name="PrintTitle" FontSize="24" TextAlignment="Center" FontFamily="Lucida Sans Unicode" FontStyle="Italic" > </TextBlock> </Border> <Border x:Name="PrintMap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="#36648B" CornerRadius="6" Margin="0,10,0,0" BorderThickness="2" Background="White" Height="Auto" > </Border> </StackPanel> </Grid> </UserControl> if you only want to print simple map, you don't need the template, you can do the following: PrintDocument doc = new PrintDocument(); doc.PrintPage += (s, args) => { args.PageVisual = this.MyMap; // any control name which you want to print }; doc.Print("Printing Test"); I am still working on to see if possible the printing preview map could be a snapshot of the main map , and the user could zoom, pan , like google map printing, but I could not use querystring to pass params, my situation is a little complicated.
... View more
06-04-2010
10:39 AM
|
0
|
0
|
1306
|
|
POST
|
Hi, Thank you so much, your suggestion works. in case somebody may need, I put some simple code here, PrintMap is print template (userControl)I created: private void PrintBtn_Click(object sender, RoutedEventArgs e) { try { PrintDocument printDoc = new PrintDocument(); printDoc.PrintPage +=new EventHandler<PrintPageEventArgs>(printDoc_PrintPage); printDoc.Print("deminhu"); } catch (Exception error) { MessageBox.Show(error.ToString()); } } //--------------------------------------- void printDoc_PrintPage(object sender, PrintPageEventArgs e) { PrintMap printMap = new PrintMap(); printMap.PrintTitle.Text = "Printing test !"; WriteableBitmap bitmap = new WriteableBitmap(MyMap, new TranslateTransform()); Image image = new Image(); image.Source = bitmap; printMap.PrintMap.Child = image; e.PageVisual = printMap; } Thanks again.
... View more
06-04-2010
07:49 AM
|
0
|
0
|
1306
|
|
POST
|
Hi, With pre-released ArcGIS Server 10, now, it is really easy to create a customized printing page without using IsolatedStorage or seding something to the server, changing paper size would not distort the map. But I still could not find a same easy way to create a Printing Preview Page. I also hope I could create a printing preview page like google map, in the preview page, the user still could zoom or pan the map, I don't think using querystring is a good idea in my situation, if there is possible way to copy the main map ( current status: different graphics, layers on or off) to the preview map which I still can zoom and pan. Thanks for help.
... View more
06-04-2010
06:18 AM
|
0
|
6
|
1606
|
|
POST
|
Hi, Thanks for help. After read your reply, I recreated a new peoject with standard template, I added a feautelayer as the following: <esri:FeatureLayer ID="FLayer" > </esri:FeatureLayer> Now, I could compile successfully, but when I tried to run, the map could not be dispalyed, IE browser show: Error on page. I did the same on my working app which created with show case template, it was the same. As soon as I removed or set a default URL for Featurelayer in .xaml , everything was OK. I forgot what exactly error meesage showed before, since it was a few week ago. it seems something like: the tag already declared in app.xaml. But as I tested now, as long as I set a default URL in .xaml, it was Ok, no error. I don't know what is wrong? now, I am using Graphicslayer instead for my purpose, but if I can fix the problem , use the featurelayer, it will help me a lot. Thanks again.
... View more
06-01-2010
01:37 PM
|
0
|
0
|
751
|
|
POST
|
Hi, I feel a problem with FeatureLayer in V2 Beta, but I am not sure if ESRI designs FeatureLayer in V2 just like this way or not. in V1.2, I used to do the following in .xmal file, then in the code behind, I set URL dynamically. Everything was fine. <esri:FeatureLayer ID="FLayer" > <esri:FeatureLayer.OutFields> <sys:String>*</sys:String> </esri:FeatureLayer.OutFields> esri:FeatureLayer> But now, with V2.0 beta version, if I didn't set a default URL in the .xmal file, it would not successfullu compile, and always got the error. If i set a URL in the .xaml file, there would no problem . But if I set a URL in .xaml file, then the user clicked a button , then reset the URL for the featurelayer in the code, then you didn't see the change displayed on the map, click again, the change showed on the map. So it need click twice. Finally, I had to use GraphicsLayer instead of FeatureLayer for my purpose. The GraphicLayer seems fine. Is there any body has such experiences with FeatureLayer in V2 beta? Thanks.
... View more
05-27-2010
02:05 PM
|
0
|
4
|
978
|
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|