Re: 4D Write PRO how to ...
Hi Keith, Thanks… looks like we will have to wait a bit longer to resolve expressions in the headers… Regards, Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 15:31, Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > Maybe not super useful, but this: > > WP EXPORT VARIABLE(waAreaPtr->;$destination;wk web page html 4D;wk html debug) > SET TEXT TO PASTEBOARD($destination) > > gives this result: > > http://www.w3.org/1999/xhtml; xmlns:d4="http://www.4D.com;> > >4D Write Pro New Document > > > >body { -d4-version:1.01;background-color:#FF } >ul, ol { margin:0;padding:0 } >p,li { > white-space:pre-wrap;margin:0pt;padding:0pt;-d4-list-font:'Times New > Roman';-d4-font:'Times New Roman';font-family:'Times New Roman' } >div.section1Footer { margin:0.5cm 2.5cm 1cm } >div.section1Header { margin:1cm 2.5cm 0.5cm } >p.Normal,li.Normal { white-space:pre-wrap } > > > >===BODY text=== > >===HEADING text=== > > >===FOOTER text=== > > > > > Keith -CDI > >> On Aug 22, 2017, at 8:22 AM, Koen Van Hooreweghe via 4D_Tech >> <4d_tech@lists.4d.com> wrote: >> >> Rudi, >> >> Probably not for the faint-hearted! But I think it is not possible to access >> a 4D Write Pro object’s contents and you’re limited to the ST and WP >> commands. >> >> I did a quick test: >> >> C_OBJECT($wpObject) >> C_TEXT($jsonText) >> $wpObject:=WP New >> ST SET TEXT($wpObject;"Hello World!") >> TRACE >> $jsonText:=JSON Stringify($wpObject) >> SET TEXT TO PASTEBOARD($jsonText) >> >> If I look at the object in the debugger, I can only see the general >> settings, not the actual content. >> >> This is what I get on the pasteboard: >> { >> "backgroundColor": 16777215, >> "dateCreation": "2017-08-22T13:17:56.918Z", >> "dateModified": "2017-08-22T13:17:56.918Z", >> "title": "4D Write Pro New Document", >> "version": 1.01 >> } >> >> Not much to manipulate. >> >> Koen >> >> >>> Op 22 aug. 2017, om 14:26 heeft Two Way Communications via 4D_Tech >>> <4d_tech@lists.4d.com> het volgende geschreven: >>> >>> Would we be able to check the actual 4D Write PRO object and manipulate it? >>> After all, it is a C_Object… >> >> >> >> >> Compass bvba >> Koen Van Hooreweghe >> Kloosterstraat 65 >> 9910 Knesselare >> Belgium >> tel +32 495 511.653 >> >> ** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: http://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
Thx Koen, I had a look myself at the 4DWRPRO object in the debugger and like you say, not much there that could be useful… Regards, Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 15:22, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Rudi, > > Probably not for the faint-hearted! But I think it is not possible to access > a 4D Write Pro object’s contents and you’re limited to the ST and WP commands. > > I did a quick test: > > C_OBJECT($wpObject) > C_TEXT($jsonText) > $wpObject:=WP New > ST SET TEXT($wpObject;"Hello World!") > TRACE > $jsonText:=JSON Stringify($wpObject) > SET TEXT TO PASTEBOARD($jsonText) > > If I look at the object in the debugger, I can only see the general settings, > not the actual content. > > This is what I get on the pasteboard: > { > "backgroundColor": 16777215, > "dateCreation": "2017-08-22T13:17:56.918Z", > "dateModified": "2017-08-22T13:17:56.918Z", > "title": "4D Write Pro New Document", > "version": 1.01 > } > > Not much to manipulate. > > Koen > > >> Op 22 aug. 2017, om 14:26 heeft Two Way Communications via 4D_Tech >> <4d_tech@lists.4d.com> het volgende geschreven: >> >> Would we be able to check the actual 4D Write PRO object and manipulate it? >> After all, it is a C_Object… > > > > > Compass bvba > Koen Van Hooreweghe > Kloosterstraat 65 > 9910 Knesselare > Belgium > tel +32 495 511.653 > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
Maybe not super useful, but this: WP EXPORT VARIABLE(waAreaPtr->;$destination;wk web page html 4D;wk html debug) SET TEXT TO PASTEBOARD($destination) gives this result: http://www.w3.org/1999/xhtml; xmlns:d4="http://www.4D.com;> 4D Write Pro New Document body { -d4-version:1.01;background-color:#FF } ul, ol { margin:0;padding:0 } p,li { white-space:pre-wrap;margin:0pt;padding:0pt;-d4-list-font:'Times New Roman';-d4-font:'Times New Roman';font-family:'Times New Roman' } div.section1Footer { margin:0.5cm 2.5cm 1cm } div.section1Header { margin:1cm 2.5cm 0.5cm } p.Normal,li.Normal { white-space:pre-wrap } ===BODY text=== ===HEADING text=== ===FOOTER text=== Keith -CDI > On Aug 22, 2017, at 8:22 AM, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Rudi, > > Probably not for the faint-hearted! But I think it is not possible to access > a 4D Write Pro object’s contents and you’re limited to the ST and WP commands. > > I did a quick test: > > C_OBJECT($wpObject) > C_TEXT($jsonText) > $wpObject:=WP New > ST SET TEXT($wpObject;"Hello World!") > TRACE > $jsonText:=JSON Stringify($wpObject) > SET TEXT TO PASTEBOARD($jsonText) > > If I look at the object in the debugger, I can only see the general settings, > not the actual content. > > This is what I get on the pasteboard: > { > "backgroundColor": 16777215, > "dateCreation": "2017-08-22T13:17:56.918Z", > "dateModified": "2017-08-22T13:17:56.918Z", > "title": "4D Write Pro New Document", > "version": 1.01 > } > > Not much to manipulate. > > Koen > > >> Op 22 aug. 2017, om 14:26 heeft Two Way Communications via 4D_Tech >> <4d_tech@lists.4d.com> het volgende geschreven: >> >> Would we be able to check the actual 4D Write PRO object and manipulate it? >> After all, it is a C_Object… > > > > > Compass bvba > Koen Van Hooreweghe > Kloosterstraat 65 > 9910 Knesselare > Belgium > tel +32 495 511.653 > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
Rudi, Probably not for the faint-hearted! But I think it is not possible to access a 4D Write Pro object’s contents and you’re limited to the ST and WP commands. I did a quick test: C_OBJECT($wpObject) C_TEXT($jsonText) $wpObject:=WP New ST SET TEXT($wpObject;"Hello World!") TRACE $jsonText:=JSON Stringify($wpObject) SET TEXT TO PASTEBOARD($jsonText) If I look at the object in the debugger, I can only see the general settings, not the actual content. This is what I get on the pasteboard: { "backgroundColor": 16777215, "dateCreation": "2017-08-22T13:17:56.918Z", "dateModified": "2017-08-22T13:17:56.918Z", "title": "4D Write Pro New Document", "version": 1.01 } Not much to manipulate. Koen > Op 22 aug. 2017, om 14:26 heeft Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > Would we be able to check the actual 4D Write PRO object and manipulate it? > After all, it is a C_Object… Compass bvba Koen Van Hooreweghe Kloosterstraat 65 9910 Knesselare Belgium tel +32 495 511.653 ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
Damn it ;-) Would we be able to check the actual 4D Write PRO object and manipulate it? After all, it is a C_Object… Regards, Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 12:13, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hi Rudi, > > Same issue, which makes 4D Write Pro for me a no go (yet). > > Koen > >> Op 21 aug. 2017, om 13:55 heeft Two Way Communications via 4D_Tech >> <4d_tech@lists.4d.com> het volgende geschreven: >> >> Using the old 4D Write, I loop through all the frames (frames 1-> 7), using >> ‘WR SET FRAME’ . Then I resolve the expressions. >> This way, all the references in the headers, text frames and footers are >> resolved before printing. >> >> I have opened an 4D Write document in 4D Write PRO, and everything is there, >> including headers and footers. >> >> However, I can’t find out how to select the headers and footers, so, when I >> use the command ST FREEZE EXPRESSIONS, and pass the 4D Write PRO area as >> object, only the references in the text part are resolved. The header keeps >> showing the references. >> >> How do I select the header frame in 4D Write PRO? > > > > > Compass bvba > Koen Van Hooreweghe > Kloosterstraat 65 > 9910 Knesselare > Belgium > tel +32 495 511.653 > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
Hi Rudi, Same issue, which makes 4D Write Pro for me a no go (yet). Koen > Op 21 aug. 2017, om 13:55 heeft Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > Using the old 4D Write, I loop through all the frames (frames 1-> 7), using > ‘WR SET FRAME’ . Then I resolve the expressions. > This way, all the references in the headers, text frames and footers are > resolved before printing. > > I have opened an 4D Write document in 4D Write PRO, and everything is there, > including headers and footers. > > However, I can’t find out how to select the headers and footers, so, when I > use the command ST FREEZE EXPRESSIONS, and pass the 4D Write PRO area as > object, only the references in the text part are resolved. The header keeps > showing the references. > > How do I select the header frame in 4D Write PRO? Compass bvba Koen Van Hooreweghe Kloosterstraat 65 9910 Knesselare Belgium tel +32 495 511.653 ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
Thanks Justin, I was afraid I would get this answer… Rudy Mortier Two Way Communications bvba - > On 22 Aug 2017, at 04:03, Justin Carr via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > On 21 Aug 2017, at 9:55 pm, Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> wrote: >> >> Using the old 4D Write, I loop through all the frames (frames 1-> 7), using >> ‘WR SET FRAME’ . Then I resolve the expressions. >> This way, all the references in the headers, text frames and footers are >> resolved before printing. >> >> I have opened an 4D Write document in 4D Write PRO, and everything is there, >> including headers and footers. >> >> However, I can’t find out how to select the headers and footers, so, when I >> use the command ST FREEZE EXPRESSIONS, and pass the 4D Write PRO area as >> object, only the references in the text part are resolved. The header keeps >> showing the references. >> >> How do I select the header frame in 4D Write PRO? > > Hi Rudy > > Unfortunately I don't think that is possible yet with 4D Write Pro. It's one > of the remaining things stopping us from being able to use it. > > Regards > Justin > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4D Write PRO how to ...
On 21 Aug 2017, at 9:55 pm, Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Using the old 4D Write, I loop through all the frames (frames 1-> 7), using > ‘WR SET FRAME’ . Then I resolve the expressions. > This way, all the references in the headers, text frames and footers are > resolved before printing. > > I have opened an 4D Write document in 4D Write PRO, and everything is there, > including headers and footers. > > However, I can’t find out how to select the headers and footers, so, when I > use the command ST FREEZE EXPRESSIONS, and pass the 4D Write PRO area as > object, only the references in the text part are resolved. The header keeps > showing the references. > > How do I select the header frame in 4D Write PRO? Hi Rudy Unfortunately I don't think that is possible yet with 4D Write Pro. It's one of the remaining things stopping us from being able to use it. Regards Justin ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
4D Write PRO how to ...
Using the old 4D Write, I loop through all the frames (frames 1-> 7), using ‘WR SET FRAME’ . Then I resolve the expressions. This way, all the references in the headers, text frames and footers are resolved before printing. I have opened an 4D Write document in 4D Write PRO, and everything is there, including headers and footers. However, I can’t find out how to select the headers and footers, so, when I use the command ST FREEZE EXPRESSIONS, and pass the 4D Write PRO area as object, only the references in the text part are resolved. The header keeps showing the references. How do I select the header frame in 4D Write PRO? Regards, Rudy Mortier Two Way Communications bvba - ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
4D Write Pro (How to print page number?)
In v16, how do we print page numbers, when printing 4D Write Pro documents directly? That is, printing is initiated by either: 1) Invoking the WR PRINT command programmatically; or 2) User choosing “Document -> Print…" from Write Pro’s contextual menu. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
4D Write Pro (How to get a negative "first ident"?)
Can I specify a negative first indent with 4D Write Pro? In the legacy 4D Write I am able to specify a negative first indent relative to the left margin. This allows text in a paragraph to begin before the left margin. In other words, the first line of a paragraph can print before the left margin. When I copy a legacy 4D Write document (which has a negative first indent) to 4D Write Pro, the negative first indent appears to be lost: paragraph text starts at the left margin instead of some distance before the left margin. How do I get a negative first ident using 4D Write Pro? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **