Problem solve Get help with specific problems with your technologies, process and projects.

Getting 'cannot locate form' error when trying to print a doc using the ViewSwitchForm command

I want to print an open document via an action with a different form than the one that created the document by using the command ViewSwitchForm (with or without parameters). I always get the message "Cannot locate form." If I click on OK, the document is displayed and printed correctly, but this is not user-friendly. How can I avoid this error message? Thanks for your help.
I could not reproduce this in ND6. If I used ViewSwitchForm, I found that the document would print with the old form, as the form switch was processed after the print command (see the help about order of formula @Command processing). But in ND6, there is a new @Command([SwitchForm];formname(opt)) that switches the form immediately. When I used that @Command, the document printed nicely with the newly specified form. Hope this helps!

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...