Resources for C# programming
November 15 2010 |
2 comments
Categories:
Publishing
I would like to build my first C# application, which will do some selecting from my feature classes and prepare a pdf output with results. In help section, under description of specific tools I found plenty of references how to script it in Python, but nothing about other languages. Could you, please advise me where I can find some references to C#?
Mapping Center Answer:
First, is helping you get help; which I learned just now that C# is one of the two .NET languages supported in ArcGIS. To get started with the online help, which is also the developers reference go to:
Specifically, for your question, creating a PDF is called "Export" in ArcGIS SDK parlance. To do that you use the output library, specifically the ExportAndPrint function.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000026000000
Change the exportType string in the call to ExportActiveViewParameterized to "PDF" it will create a PDF with default settings. The Output library overview has more of the philosophical info about output and how to use it.
If you would like to post a comment, please login.