Hi,
My Question is when I open a current document, I need to print the contents using different form which is diffent format not the form which I open the document, I tried to put a print button on the form which open the document, the button call a agent include @command([filePrint];“”;“”;“”;“”;the other form name), the error message told me it is not available.
Would you please tell me how to solve it?
Thanks in advance
Linda
Subject: How to print the current document contents using the other form?
So you are opening the document by clicking on a view?
Subject: How to print the current document contents using the other form?
Hi Linda -
Designer Help says:
@Command([FilePrint])
Prints the currently open or selected document(s), or the current view.
Syntax
@Command( [FilePrint] )
or
@Command( [FilePrint] ; numCopies; fromPage; toPage; ifDraft; ifView; formName; breakType; ifReset; startDate; endDate)
So your command should have an extra set of ;“”;, since currently it has the other form name in the place where it should have ifView.
I use the following in a view action button to print the selected document(s) with a different form. Should work with the currently opened document as well in an action button:
@Command([FilePrint] ; “” ; “” ; “” ; “” ; “” ; “Printform”; “pagebreak” ; “resetpages”)
Hope this helps…
Subject: RE: How to print the current document contents using the other form?
Thank you all of you.
@Command( [SwitchForm] ; formName ) works very well.
Once again thanks!
Linda
Subject: How to print the current document contents using the other form?
@Command( [SwitchForm] ; formName )