Re: Write Pro setting print options
OK so for anybody's who's interested ... It currently isn't possible to set these options in this way (i.e., when creating a document entirely in code). A workaround would be to do something like open a window containing a layout that contains a WritePro area, apply the modifications to that area, and use that. Or manually create a template that has the desired options. I'm hoping that the required functionality will be added in an upcoming release of Write Pro ... Pat On 23 March 2018 at 15:01, Pat Benskywrote: > Hi Jeremy, > Yes, WP USE PAGE SETUP is called after INVOKE ACTION. > > //Also remember that the 4D Write Pro area must have the focus when > INVOKE ACTION is called. > Therein may lie the problem. The document is being created in memory - it > isn't on a form. So I guess it does not have the focus. > So ... how do I apply settings to the document? > > PB > > On 22 March 2018 at 20:23, Jeremy French via 4D_Tech <4d_tech@lists.4d.com > > wrote: > >> Hi Pat, >> >> Have you tried calling the command WP USE PAGE SETUP *after* INVOKE >> ACTION? >> >> That is, the following call sequence works: >> >> INVOKE ACTION >> WP USE PAGE SETUP >> WP PRINT >> >> Also remember that the 4D Write Pro area must have the focus when INVOKE >> ACTION is called. >> >> Best regards, >> Jeremy >> >> > On Mar 22, 2018, at 8:25 AM, Pat Bensky via 4D_Tech < >> 4d_tech@lists.4d.com> wrote: >> > >> > *INVOKE ACTION*("pageOrientation?value=landscape") >> > >> > *INVOKE ACTION*("pageMode?value=page";ak current form) >> > >> > and they don't have any effect. >> > >> >> ** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** >> > > > > -- > * > CatBase - Top Dog in Data Publishing > tel: +44 (0) 207 118 7889 <+44%2020%207118%207889> > w: http://www.catbase.com > skype: pat.bensky > * > -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Write Pro setting print options
Hi Jeremy, Yes, WP USE PAGE SETUP is called after INVOKE ACTION. //Also remember that the 4D Write Pro area must have the focus when INVOKE ACTION is called. Therein may lie the problem. The document is being created in memory - it isn't on a form. So I guess it does not have the focus. So ... how do I apply settings to the document? PB On 22 March 2018 at 20:23, Jeremy French via 4D_Tech <4d_tech@lists.4d.com> wrote: > Hi Pat, > > Have you tried calling the command WP USE PAGE SETUP *after* INVOKE ACTION? > > That is, the following call sequence works: > > INVOKE ACTION > WP USE PAGE SETUP > WP PRINT > > Also remember that the 4D Write Pro area must have the focus when INVOKE > ACTION is called. > > Best regards, > Jeremy > > > On Mar 22, 2018, at 8:25 AM, Pat Bensky via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > *INVOKE ACTION*("pageOrientation?value=landscape") > > > > *INVOKE ACTION*("pageMode?value=page";ak current form) > > > > and they don't have any effect. > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** > -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Write Pro setting print options
Hello, WP PAGE SETUP over writes all current print settings with that of the write pro document, for the next print job. you should NOT use it when you are using regular SET PRINT OPTION to specify the paper and orientation. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Write Pro setting print options
Hi Pat, Have you tried calling the command WP USE PAGE SETUP *after* INVOKE ACTION? That is, the following call sequence works: INVOKE ACTION WP USE PAGE SETUP WP PRINT Also remember that the 4D Write Pro area must have the focus when INVOKE ACTION is called. Best regards, Jeremy > On Mar 22, 2018, at 8:25 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > *INVOKE ACTION*("pageOrientation?value=landscape") > > *INVOKE ACTION*("pageMode?value=page";ak current form) > > and they don't have any effect. > ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Write Pro setting print options
Nope ... as you pointed out, it's not a printing issue. It's a "saving the specified settings" issue. INVOKE ACTION isn't used at all in that HDI example. On 22 March 2018 at 15:02, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > perhaps the HDI demos might help: > > http://download.4d.com/Demos/4D_v16/ > > HDI_4DWP_Print.zip > > > 2018/03/22 13:25、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール: > > Is there something additional I need to do? > > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** > -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Write Pro setting print options
Thanks - there are so many places to look for commands that affect WritePro areas, I sometimes forget about that one :) is your question about the checkmark missing in the contextual popup menu? Yes, that is one part of the question. Unfortunately this still doesn't work. I am creating documents entirely in code. A template document is opened and modified. Once the doc has been created it is printed as a PDF and also saved in a new record in the database. None of the "invoke action" options seem to stick. The document size and other settings such as page orientation are always the same as the WritePro template that was used as the basis for the new document. I tried adding some additional actions - e.g.: *INVOKE ACTION*("pageOrientation?value=landscape") *INVOKE ACTION*("pageMode?value=page";ak current form) and they don't have any effect. Is there something additional I need to do? Thanks! Pat On 22 March 2018 at 10:27, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > Hello, > > the commands > > is your question about the checkmark missing in the contextual popup menu? > > > SET PRINT OPTION is a printing command, > to change the document size of the Write Pro doc itself, > I think you need to INVOKE ACTION > > http://doc.4d.com/4Dv16R5/4D/16-R5/Using-4D-Write-Pro- > standard-actions.200-3494557.en.html > > e.g. > > INVOKE ACTION("pageSize?index=1";ak current form) > > > 2018/03/21 19:30、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール: > > > > I use > > > > SET PRINT OPTION(Paper option;"A4") > > > > to set the page size to A4. > > > > But this doesn't seem to work. > > If I view the document that was created, go to > > Document->Page size > > > > No page size is selected. > > I choose A4 and the page size changes accordingly. > > > > BTW if I go again to Document->Page size, it still doesn't show which > page > > size is selected. > > > > Likewise, SET PRINT OPTION(Orientation option;2) doesn't seem to have any > > effect. > > > > Am I doing this the wrong way? > > > > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** -- * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Write Pro setting print options
Hello, the commands is your question about the checkmark missing in the contextual popup menu? SET PRINT OPTION is a printing command, to change the document size of the Write Pro doc itself, I think you need to INVOKE ACTION http://doc.4d.com/4Dv16R5/4D/16-R5/Using-4D-Write-Pro-standard-actions.200-3494557.en.html e.g. INVOKE ACTION("pageSize?index=1";ak current form) > 2018/03/21 19:30、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール: > > I use > > SET PRINT OPTION(Paper option;"A4") > > to set the page size to A4. > > But this doesn't seem to work. > If I view the document that was created, go to > Document->Page size > > No page size is selected. > I choose A4 and the page size changes accordingly. > > BTW if I go again to Document->Page size, it still doesn't show which page > size is selected. > > Likewise, SET PRINT OPTION(Orientation option;2) doesn't seem to have any > effect. > > Am I doing this the wrong way? > ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Write Pro setting print options
I use SET PRINT OPTION(Paper option;"A4") to set the page size to A4. But this doesn't seem to work. If I view the document that was created, go to Document->Page size No page size is selected. I choose A4 and the page size changes accordingly. BTW if I go again to Document->Page size, it still doesn't show which page size is selected. Likewise, SET PRINT OPTION(Orientation option;2) doesn't seem to have any effect. Am I doing this the wrong way? PB * CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky * ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **