Unlock Print Preview as Default?
Is there anyways to uncheck (as the default setting) the "Lock print preview with map" box? Right now it's turned on when you go to print and I'd like to leave it off from the beginning.
Thanks, John

0
-
John,
Did you ever find a way to do this? I did a little searching in the forums here but only found your post.
I don't know how comfortable you are editing Latitude's code, but I added a bit of code to the Mapping.js located in wwwroot/{location of html 2.6/2.6.1}/Resources/Compiled and it now turns off the 'Lock print preview with map' checkbox by default.
To do this, you'll add this line to the end of the b.prototype.initializePrintPreview function(including the semi colon):
;this.lockModeHasChanged()||this.viewModel.printPreviewIsLocked.set(!1)
So the full function will look like this:b.prototype.initializePrintPreview=function(){this.viewModel.previewIsEnabled.get()&&(this.viewModel.previewIsVisible.get()?this.addGraphicPrintPreview():(this.viewModel.setScales(this.viewModel.selectedTemplate.get()),this.viewModel.printPreviewIsLocked.set(!0), this.viewModel.graphic||this.addGraphicPrintPreview()))<u><b>;this.lockModeHasChanged()||this.viewModel.printPreviewIsLocked.set(!1)</b></u>};
Hope this helps,
Marshall0 -
Thanks Marshall. I'll dig into that json file and give it a shot. Thanks for passing it along and I'll let you know how it goes! Hopefully in a future enhancement to HTML5, it will be included.
Regards,
John0 -
Hi there. Has anyone found that after upgrading to 2.8 this trick no longer works? Thanks! 0 -
Hi Jeff,
If this is not working in 2.8 anymore, I would suggest submitting it to the Ideas section. Marshall's workaround is excellent, but generally if you need to edit a compiled typescript file to change something, that thing would be better accessed through Manager :)
Thanks!
Danny0 -
Hi,
We have been using this tric too, but now, after upgrading from 2.6 to 2.9.2, it no longer works.
Regards, Martin0 -
Yes, it would be nice if we could unlock the Print Preview as Default.
Anybody?0 -
I just posted this idea to the Ideas forum.
John0 -
Hello, just wondering if the idea has ever been posted, and whether it has been implemented? I still can't find a way to unlock the print preview by default.
0
Please sign in to leave a comment.
Comments
8 comments