I have a button added to my list view that opens SP2013 list data into a new InfoPath form using the InfoPath 2013 client. That form then has a button which programmatically exports the form into a PDF document.
I have one user who sets their display to 150%, and as a result the PDF exports with 1/3 of the document cut off. Changing the display back to 100% in Control Panel fixes the issue, but the user wants their display at 150% and doesn't want to have to change it each time they need a PDF. This person is running Windows 7 (Ultimate, I believe, but it could be Professional) 32-bit. I'm able to duplicate the issue, however, on my 64-bit Win7 Pro machine.
This may be a question for the Super User or SE exchanges, not sure. It's not specific to SharePoint, but SP2013 is the platform it's all launching from. The code behind the button does a lot of setting variables and such, but here's the relevant part:
//Do the work -- switch to the PDF view then export it as a PDF file. Microsoft.Office.InfoPath.View currentView = this.CurrentView; this.CurrentView.Export(@fileLocation + fileName + ".pdf", ExportFormat.Pdf);
Has anyone run into this issue before, or know of a way to supercede the display setting when exporting an InfoPath form?
Edit: If this question belongs elsewhere, please let me know which SE to put it on. I didn't find anything specific to InfoPath.