Zum Hauptinhalt gehen

Unlock Print Preview as Default?

Kommentare

8 Kommentare

  • Permanently deleted user
    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,

     

    Marshall
    0
  • Permanently deleted user
    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,

     

    John
    0
  • Permanently deleted user
    Hi there.  Has anyone found that after upgrading to 2.8 this trick no longer works?  Thanks!
    0
  • Permanently deleted user
    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!

     

    Danny
    0
  • Martin Simonsen Bjørkenes
    Hi,

     

    We have been using this tric too, but now, after upgrading from 2.6 to 2.9.2, it no longer works.

     

    Regards, Martin

     

     
    0
  • Permanently deleted user
    Yes, it would be nice if we could unlock the Print Preview as Default.

     

    Anybody?
    0
  • Permanently deleted user
    I just posted this idea to the Ideas forum.

     

    John
    0
  • Jack Zhang

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.