Select to view content in your preferred language

PrintAndExport

2895
1
03-24-2015 02:55 AM
RaoBase
Deactivated User

Hi I am using ArcGIS 10.2 .net SDK to create an Arcmap Addin.

I am trying to print pagelayout using PrintAndExport

The pagelayout margin in the printout is not centered on the page, i.e. there is a large blank space on the page.

Any suggestions? Are there other alternatives to using PrintAndExport?

0 Kudos
1 Reply
TiffanySelvidge1
Frequent Contributor

I have been trying to get my print pagelayout working by using the IExportPDF interface. Using that method, I can theoretically specify the boundaries and page extent so that my printed pagelayout is centered on the page. The VBA version of the code worked perfectly with everything centered and looking good. If you are interested in fiddling with my code and getting it to work for your purposes, you can find it here Export Page Layout to PDF using ESRI add-in with vb.net .

If you do a search for ExportPDF here or at StackExchange GIS then you can find some different examples of codes using the interface. You can also export to different extensions such as jpg using IExport.

0 Kudos