|
POST
|
I guess I really don't explain the contents of the zip file at http://www.pierssen.com/arcgis10/silverlight.htm -- maybe I should add a ReadMe.txt with more info. Anyway, PDFExporter.cs is the actual PDF export class, and ExportPDF.xaml.cs is the code-behind for a sample user control which uses the class.
... View more
03-01-2011
07:56 AM
|
0
|
0
|
2035
|
|
POST
|
There's a section in the sample user control code marked "Methods called by the MainPage".
... View more
03-01-2011
07:26 AM
|
0
|
0
|
2035
|
|
POST
|
FYI, the PDF exporter download has included an example user control since November. I've never seen a problem with tiled, dynamic, or graphic layers. http://www.pierssen.com/arcgis10/silverlight.htm
... View more
02-02-2011
12:50 PM
|
0
|
0
|
2035
|
|
POST
|
Man, I'm glad I found this thread - I've really been banging my head over this one since I moved to VS 2010 yesterday. Isn't "upgrading" fun? 😛
... View more
01-27-2011
06:09 AM
|
0
|
0
|
1899
|
|
POST
|
Whoops, I take back what I said. I found a couple of bugs after all in the uploaded version. I've just uploaded a new version (1.1) with these fixes: 1) Uses "exportImage" rather than "export" for image services, 2) Sets bboxSR for layers with a different SR than the map. I've started thinking about the best way to deal with stale output stream handles, and may set up an optional two-stage export process.
... View more
11-05-2010
02:56 PM
|
0
|
0
|
1752
|
|
POST
|
Actually, ArcGIS image server does support the f=image option. The whole point of the PDF exporter class is that it depends upon services being able to stream bytes directly to the client. It works with the image service I use just fine.
... View more
11-03-2010
09:17 AM
|
0
|
0
|
1752
|
|
POST
|
Again, I highly recommend the Silverlight Table of Contents code example in the code gallery. Here's a link to it: http://www.arcgis.com/home/item.html?id=acad4f3fb7d04854ab8dbe3fc5f79fc5
... View more
11-01-2010
12:48 PM
|
0
|
0
|
2548
|
|
POST
|
Do you want multiple layers for one GPS unit? That's definitely not possible, because the app locks the serial port. That's why you can't have other GPS software running, because it will also lock the port. If you want to support multiple GPS units on different ports I guess that might be possible, but my question would be "Why?" A quick test would be for you to download the code from the web site, comment out the lines checking for an existing layer, and see if it actually works.
... View more
10-28-2010
12:25 PM
|
0
|
0
|
2329
|
|
POST
|
The only method I've found is to keep track of which layers are visible at a given "scale" (ESRI deprecates that term nowadays) and provide those IDs with the "all" option each time I make an identify request. It takes a bit of logic to sort through the layers, I'm afraid. Check out the table of contents at the silverlight code gallery for an example of maintaining visibility info. You can use REST calls to grab the min and max scales for each layer, but that's pretty chatty. To keep things simpler, what I ended up doing was create a WCF service to get all the layer info with one SOAP call: if you add a web reference to the map service in your ASP project it automatically builds the methods and data structures for you.
... View more
10-12-2010
10:32 AM
|
0
|
0
|
2548
|
|
POST
|
I'm trying to set the LayerIDs property and Visual Studio says it's read-only. Is that a bug?
... View more
10-11-2010
09:04 AM
|
0
|
0
|
4972
|
|
POST
|
Sorry, I should have been more specific. In PDFExporter.cs, comment out all the _streamOutPDF lines and move your SaveFileDialog lines to just before the document.Save line. If that's actually the problem, then I'll revise the class accordingly.
... View more
09-02-2010
09:32 AM
|
0
|
0
|
1928
|
|
POST
|
Interesting. I haven't encountered that error myself, but I'm wondering if in your case it takes so long to create the image that the output stream provided by Silverlight is expiring. Try asking for the output PDF file right at the start of the PDF creation stage and see if that solves the problem.
... View more
09-02-2010
08:31 AM
|
0
|
0
|
2408
|
|
POST
|
You need to study the code more closely. In the download, that line is within a try block to test for restricted content. If restricted content is encountered, then the workaround is invoked.
... View more
09-02-2010
07:47 AM
|
0
|
0
|
2408
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-04-2012 06:42 AM | |
| 1 | 09-23-2021 10:42 AM | |
| 2 | 09-28-2021 07:07 AM | |
| 1 | 04-07-2021 10:31 PM | |
| 3 | 03-21-2021 01:14 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-07-2022
08:31 AM
|