Re: Printing 4D Write to PDF via Windows 10 "Microsoft Print to PDF"

2019-03-01 Thread Robert McKeever via 4D_Tech
This is what I do:

SET CURRENT PRINTER(<>FormPrinter)`  where <>FormPrinter is "Microsoft 
Print to PDF"
SET PRINT OPTION(Destination option;2;$FileName)
SET PRINT OPTION(Orientation option;2)

Then, I just print. To print a patient chart, I open a print job, and print 
forms, images, PDF’s by page, 4D Write letters, then close the print job. All 
ends up in one PDF.

For 4D Write letters, 

$Area:=WR New offscreen area 
WR PICTURE TO AREA ($Area;[LettersSent]Letter_)
WR PRINT ($Area)
WR DELETE OFFSCREEN AREA ($Area)


> On Mar 1, 2019, at 9:01 AM, Bill Hutten via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi all - Apologies in advance - if this has been discussed and I'm just 
> missing it, please point me to the archives.
> 
> I need to print 4D Write docs (not 4D Write Pro), on Windows 10, to PDF, 
> using the built-in "Microsoft Print to PDF" printer. This is the code I 
> curently have, cobbled togeather from various sources:
> 
> SET CURRENT PRINTER("Microsoft Print to PDF")
> SET PRINT OPTION(Spooler document name option;$fname)
> SET PRINT OPTION(Destination option;2;$path)  
> WR SET PRINT OPTION ($area;wr spooler document name option;$fname)
> WR SET PRINT OPTION ($area;wr destination option;wr send to file;0;$path)
> OPEN PRINTING JOB
> WR PRINT ($area;0;1)
> CLOSE PRINTING JOB
> 
> It works, in that a PDF is created, with the right $fname, at the right 
> $path. It doesn't work, in that the PDF is 0 bytes in size.
> 
> 
> Anyone have tested code that solves this problem?
> 
> - bill
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@mac.com




**
4D Internet Users Group (4D iNUG)
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: Replacing FootRunner in v16

2019-03-01 Thread Jeffrey Kain via 4D_Tech
This technique works great by the way. Add K @4D pointed this out to us last 
summer, and we implemented a secure, locked down way to do this in our compiled 
application; it has really saved us a few times!

--
Jeffrey Kain
jeffrey.k...@gmail.com

> On Feb 23, 2019, at 4:24 AM, GI -AJAR via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> I have fond this on their website. Must help you. 
> http://www.footprints-inc.com/Blog/13

**
4D Internet Users Group (4D iNUG)
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: exe file that can launch 4D client as well as Chrome?

2019-03-01 Thread Keith Goebel via 4D_Tech
Chip, Julio and Tai,
Many thanks for your replies and ideas.
Much food for thought.
Cheers, Keith

**
4D Internet Users Group (4D iNUG)
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: Replacing FootRunner in v16

2019-03-01 Thread GI -AJAR via 4D_Tech
Hi,

I have fond this on their website. Must help you. 
http://www.footprints-inc.com/Blog/13

Best Regards,

Gabriel Inzirillo 

Envoyé de mon iPhone

> Le 23 févr. 2019 à 09:33, Peter Adam via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Fir many years I have been running scripts for 4D write documents using 
> Footrunner, then nifty plugin from Footprints.
> 
> Now with v16 I no longer have this tool available.
> 
> There is a comment on the Footprints web site about looking for a capability 
> in v16 that replaces Footrunner.
> 
> I am going blind, so I must =have missed the way to do this.
> 
> Can anyone point me in the right direction?
> 
> 
> 
> 
> Cheers
> 
> Peter Adam
> Adam, Zievert & Associates Pty Ltd
> Melbourne Australia
> Skype Phone: +61 3 9016 379
> p: +61 3 9836 3539
> f: +61 3 9836 9730
> m: 0419 552 462
> e: peter.a...@me.com 
> w: www.adamzievert.com.au 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
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: Ref: Debugger window corruption

2019-03-01 Thread Douglas von Roeder via 4D_Tech
John:

Happy to help.
--
Douglas von Roeder
949-336-2902


On Fri, Mar 1, 2019 at 12:09 PM John J Foster  wrote:

> Hey Doug,
>
> Thanks!
>
> A whole world of info to the “trained” eyes!
>
> Appreciate,
> John…
>
>
>
> The kb is handy but, for searching, try this in Google
>
> site:https://kb.4d.com debugger
> 
>
>
> The full text search in the doc center is handy (upper right hand corner)
> but this works pretty well:
>
> site:https://doc.4d.com/4Dv17R3 query by formula
> 
>
>
> --
> Douglas von Roeder
> 949-336-2902
>
>
> On Fri, Mar 1, 2019 at 11:12 AM John J Foster 
> wrote:
>
>> Hey Doug,
>>
>> I thought there’d be an KB step but couldn’t;t find it. I guess I used
>> “Debugger issue” and “Debugger corruption” and I should’ve just used
>> “Debugger”.
>>
>> Anyway, it’s all good and logged for future reference if needed again.
>>
>> Appreciate,
>> John…
>>
>>
>>
>> John:
>>
>> Happy to pass that along.
>>
>> I just checked the kb:
>>
>> https://kb.4d.com/assetid=78161
>>
>> --
>> Douglas von Roeder
>> 949-336-2902
>>
>>
>> On Fri, Mar 1, 2019 at 10:58 AM John J Foster 
>> wrote:
>>
>>> Hi Doug,
>>>
>>> Thanks!
>>>
>>> Just holding the Shift key down and run (click the green button) from
>>> any method appears to have worked.
>>>
>>> Yeah!!!
>>>
>>> Appreciate,
>>> John…
>>>
>>>
>>>
>>> John:
>>>
>>> I saw this documented only recently so I thought it was for V17 but I
>>> just checked it in 15.4 - Win server, Mac client.
>>>
>>> Hold down the Shift key to reset the boundaries for the editor windows
>>> in design mode.
>>>
>>> In the case of the debugger, create an empty method (I have one called
>>> “aTestDoug”) and type in “Trace”. Hold down the Shift key and click the
>>> green “go” button to run the method. 4D will execute the Trace command and
>>> will open the debugger in the default position.
>>>
>>> For the Explorer, make sure that the Explorer is closed, hold down the
>>> Shift key, and open the Explorer with the mouse.
>>>
>>> Before I learned the Shift key trick, I had to resort to throwing out
>>> the config file. From my “4D Text File Locations” document:
>>>
>>>
>>> C:\Users\Doug\Application Data\4D\4D Window Bounds
>>> v15\development\[projectForm]
>>> Change "explo_preview"
>>> Refer to Explorer.json file in 4D/14.5 (OS X)
>>>
>>> Debugger Window Settings (and others)
>>> c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences
>>>
>>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
>>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
>>> C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
>>> C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14
>>>
>>>
>>> --
>>> Douglas von Roeder
>>> 949-336-2902
>>>
>>>
>>> On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech <
>>> 4d_tech@lists.4d.com> wrote:
>>>
 Hi All,

 Mac OS 12.6 4D 15.2 (have to stay with this version until client
 upgrades to v16/v17).

 In the last few days I’ve experienced a strange Debugger issue
 (corruption) that I cannot seem to fix. I think it happened after a crash.
 What is happening is that the top parts of the debugger screen, like the
 toolbar, are hidden above the top of the debugger screen. It’s like what
 used to happen when you tabbed to a variable offscreen and you couldn’t get
 back to the top of the screen but weirder.

 On the left side pane the Variables is the top and anything above that
 I do not have access to. I cannot get to the debugger buttons. I cannot
 abort into a method, etc. Expanding the window to full screen doesn’t help.
 Moving various splitters doesn’t help. Needless to say it makes debugging a
 near impossibility!

 I have tried throwing away the application preference folder:

 Library->Application Support -> 4D ... have it recreated but that
 didn’t help.

 I have even downloaded and installed a fresh copy of 4D 15.2. Still no
 help,

 Is there another set of files that controls the debugger screen display?

 I think this is a first in over 30 years!

 Thanks,
 John…



 **
 4D Internet Users Group (4D iNUG)
 Archive:  http://lists.4d.com/archives.html
 Options: https://lists.4d.com/mailman/options/4d_tech
 Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
 **
>>>
>>>
>>>
>>
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com

Ref: Debugger window corruption

2019-03-01 Thread John J Foster via 4D_Tech
Hey Doug,

Thanks!

A whole world of info to the “trained” eyes!

Appreciate,
John…



> The kb is handy but, for searching, try this in Google 
> 
> site:https://kb.4d.com debugger 
> 
> 
> 
> The full text search in the doc center is handy (upper right hand corner) but 
> this works pretty well:
> 
> site:https://doc.4d.com/4Dv17R3 query by formula 
> 
> 
> 
> --
> Douglas von Roeder
> 949-336-2902
> 
> 
> On Fri, Mar 1, 2019 at 11:12 AM John J Foster  > wrote:
> Hey Doug,
> 
> I thought there’d be an KB step but couldn’t;t find it. I guess I used 
> “Debugger issue” and “Debugger corruption” and I should’ve just used 
> “Debugger”.
> 
> Anyway, it’s all good and logged for future reference if needed again.
> 
> Appreciate,
> John…
> 
> 
> 
>> John:
>> 
>> Happy to pass that along. 
>> 
>> I just checked the kb:
>> 
>> https://kb.4d.com/assetid=78161 
>> 
>> --
>> Douglas von Roeder
>> 949-336-2902
>> 
>> 
>> On Fri, Mar 1, 2019 at 10:58 AM John J Foster > > wrote:
>> Hi Doug,
>> 
>> Thanks!
>> 
>> Just holding the Shift key down and run (click the green button) from any 
>> method appears to have worked.
>> 
>> Yeah!!!
>> 
>> Appreciate,
>> John…
>> 
>> 
>> 
>>> John:
>>> 
>>> I saw this documented only recently so I thought it was for V17 but I just 
>>> checked it in 15.4 - Win server, Mac client. 
>>> 
>>> Hold down the Shift key to reset the boundaries for the editor windows in 
>>> design mode.
>>> 
>>> In the case of the debugger, create an empty method (I have one called 
>>> “aTestDoug”) and type in “Trace”. Hold down the Shift key and click the 
>>> green “go” button to run the method. 4D will execute the Trace command and 
>>> will open the debugger in the default position. 
>>> 
>>> For the Explorer, make sure that the Explorer is closed, hold down the 
>>> Shift key, and open the Explorer with the mouse.
>>> 
>>> Before I learned the Shift key trick, I had to resort to throwing out the 
>>> config file. From my “4D Text File Locations” document:
>>> 
>>>  
>>> C:\Users\Doug\Application Data\4D\4D Window Bounds 
>>> v15\development\[projectForm]
>>> Change "explo_preview"
>>> Refer to Explorer.json file in 4D/14.5 (OS X)
>>>  
>>> Debugger Window Settings (and others)
>>> c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences
>>> 
>>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
>>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
>>> C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
>>> C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14
>>> 
>>> 
>>> --
>>> Douglas von Roeder
>>> 949-336-2902
>>> 
>>> 
>>> On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech 
>>> <4d_tech@lists.4d.com > wrote:
>>> Hi All,
>>> 
>>> Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades 
>>> to v16/v17).
>>> 
>>> In the last few days I’ve experienced a strange Debugger issue (corruption) 
>>> that I cannot seem to fix. I think it happened after a crash. What is 
>>> happening is that the top parts of the debugger screen, like the toolbar, 
>>> are hidden above the top of the debugger screen. It’s like what used to 
>>> happen when you tabbed to a variable offscreen and you couldn’t get back to 
>>> the top of the screen but weirder.
>>> 
>>> On the left side pane the Variables is the top and anything above that I do 
>>> not have access to. I cannot get to the debugger buttons. I cannot abort 
>>> into a method, etc. Expanding the window to full screen doesn’t help. 
>>> Moving various splitters doesn’t help. Needless to say it makes debugging a 
>>> near impossibility!
>>> 
>>> I have tried throwing away the application preference folder:
>>> 
>>> Library->Application Support -> 4D ... have it recreated but that didn’t 
>>> help.
>>> 
>>> I have even downloaded and installed a fresh copy of 4D 15.2. Still no help,
>>> 
>>> Is there another set of files that controls the debugger screen display?
>>> 
>>> I think this is a first in over 30 years!
>>> 
>>> Thanks,
>>> John…
>>> 
>>> 
>>> 
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html 
>>> 
>>> Options: https://lists.4d.com/mailman/options/4d_tech 
>>> 
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
>>> 
>>> **
>> 
> 

**
4D Internet Users Group (4D iNUG)
Archive:  

Re: Ref: Debugger window corruption

2019-03-01 Thread Douglas von Roeder via 4D_Tech
John:

Understood.

The kb is handy but, for searching, try this in Google

site:https://kb.4d.com debugger



The full text search in the doc center is handy (upper right hand corner)
but this works pretty well:

site:https://doc.4d.com/4Dv17R3 query by formula



--
Douglas von Roeder
949-336-2902


On Fri, Mar 1, 2019 at 11:12 AM John J Foster  wrote:

> Hey Doug,
>
> I thought there’d be an KB step but couldn’t;t find it. I guess I used
> “Debugger issue” and “Debugger corruption” and I should’ve just used
> “Debugger”.
>
> Anyway, it’s all good and logged for future reference if needed again.
>
> Appreciate,
> John…
>
>
>
> John:
>
> Happy to pass that along.
>
> I just checked the kb:
>
> https://kb.4d.com/assetid=78161
>
> --
> Douglas von Roeder
> 949-336-2902
>
>
> On Fri, Mar 1, 2019 at 10:58 AM John J Foster 
> wrote:
>
>> Hi Doug,
>>
>> Thanks!
>>
>> Just holding the Shift key down and run (click the green button) from any
>> method appears to have worked.
>>
>> Yeah!!!
>>
>> Appreciate,
>> John…
>>
>>
>>
>> John:
>>
>> I saw this documented only recently so I thought it was for V17 but I
>> just checked it in 15.4 - Win server, Mac client.
>>
>> Hold down the Shift key to reset the boundaries for the editor windows in
>> design mode.
>>
>> In the case of the debugger, create an empty method (I have one called
>> “aTestDoug”) and type in “Trace”. Hold down the Shift key and click the
>> green “go” button to run the method. 4D will execute the Trace command and
>> will open the debugger in the default position.
>>
>> For the Explorer, make sure that the Explorer is closed, hold down the
>> Shift key, and open the Explorer with the mouse.
>>
>> Before I learned the Shift key trick, I had to resort to throwing out the
>> config file. From my “4D Text File Locations” document:
>>
>>
>> C:\Users\Doug\Application Data\4D\4D Window Bounds
>> v15\development\[projectForm]
>> Change "explo_preview"
>> Refer to Explorer.json file in 4D/14.5 (OS X)
>>
>> Debugger Window Settings (and others)
>> c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences
>>
>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
>> C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
>> C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14
>>
>>
>> --
>> Douglas von Roeder
>> 949-336-2902
>>
>>
>> On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>
>>> Hi All,
>>>
>>> Mac OS 12.6 4D 15.2 (have to stay with this version until client
>>> upgrades to v16/v17).
>>>
>>> In the last few days I’ve experienced a strange Debugger issue
>>> (corruption) that I cannot seem to fix. I think it happened after a crash.
>>> What is happening is that the top parts of the debugger screen, like the
>>> toolbar, are hidden above the top of the debugger screen. It’s like what
>>> used to happen when you tabbed to a variable offscreen and you couldn’t get
>>> back to the top of the screen but weirder.
>>>
>>> On the left side pane the Variables is the top and anything above that I
>>> do not have access to. I cannot get to the debugger buttons. I cannot abort
>>> into a method, etc. Expanding the window to full screen doesn’t help.
>>> Moving various splitters doesn’t help. Needless to say it makes debugging a
>>> near impossibility!
>>>
>>> I have tried throwing away the application preference folder:
>>>
>>> Library->Application Support -> 4D ... have it recreated but that didn’t
>>> help.
>>>
>>> I have even downloaded and installed a fresh copy of 4D 15.2. Still no
>>> help,
>>>
>>> Is there another set of files that controls the debugger screen display?
>>>
>>> I think this is a first in over 30 years!
>>>
>>> Thanks,
>>> John…
>>>
>>>
>>>
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>>
>>
>>
>
**
4D Internet Users Group (4D iNUG)
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: Debugger window corruption

2019-03-01 Thread John J Foster via 4D_Tech
Hi Steve,

I think so. The core structural fragment of the code is:

Case of 
: ($version="13@“)
…
Else 
//4D V14 & V15 
End case 

John…



> On Mar 1, 2019, at 10:59 AM, Stephen J. Orth  
> wrote:
> 
> John,
> 
> Which version of my method are you running?  Is it the one from 2015 that 
> works for V13 -> V16?
> 
> 
> Steve
> 
> *
>  Stephen J. Orth
>  The Aquila Group, Inc.  Office:  (608) 834-9213
>  P.O. Box 690   Mobile:  (608) 347-6447
>  Sun Prairie, WI 53590
> 
>  E-Mail:  s.o...@the-aquila-group.com
> *
> 
> -Original Message-
> From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of John J Foster via 
> 4D_Tech
> Sent: Friday, March 1, 2019 12:54 PM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: John J Foster 
> Subject: Ref: Debugger window corruption
> 
> Hi Neil,
> 
> I searched and found the v15 method you mentioned. It was authored by Stephen 
> J. Orth. I created the method and ran it but it didn’t work for me. Not sure 
> why.
> 
> Although I’ll respond in another email to what did work...
> 
> Appreciate,
> John…
> 
> 
>>> On the left side pane the Variables is the top and anything above that I do 
>>> not have access to. I cannot get to the debugger buttons.
>> 
>> There was a debugger reset method that was posted a few years ago. I don't 
>> have the one for v15 but if you search you might be able to find it. I think 
>> it was written by Miyako.
>> 
>> This is the v17 version:
>> 
>> C_TEXT($tPath)
>> 
>> $tPath:=Get 4D folder(Active 4D Folder)+\ "4D Window Bounds 
>> v"+Substring(Application version;1;2)+Folder separator+\ 
>> "runtime"+Folder separator+\ "[projectForm]"+Folder separator+\ 
>> "4ddebugger.json"
>> 
>> If (Test path name($tPath)=Is a document)
>>  ON ERR CALL("Blank")
>>  DELETE DOCUMENT($tPath)
>>  ON ERR CALL("")
>> End if
>> 
>> 
>> Neil
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Privacy Disclaimer: This message contains confidential information and is 
>> intended only for the named addressee. If you are not the named addressee 
>> you should not disseminate, distribute or copy this email. Please delete 
>> this email from your system and notify the sender immediately by replying to 
>> this email.  If you are not the intended recipient you are notified that 
>> disclosing, copying, distributing or taking any action in reliance on the 
>> contents of this information is strictly prohibited.
>> 
>> The Alternative Investments division of UMB Fund Services provides a full 
>> range of services to hedge funds, funds of funds and private equity funds.  
>> Any tax advice in this communication is not intended to be used, and cannot 
>> be used, by a client or any other person or entity for the purpose of (a) 
>> avoiding penalties that may be imposed on any taxpayer or (b) promoting, 
>> marketing, or recommending to another party any matter addressed herein.
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Ref: Debugger window corruption

2019-03-01 Thread John J Foster via 4D_Tech
Hey Doug,

I thought there’d be an KB step but couldn’t;t find it. I guess I used 
“Debugger issue” and “Debugger corruption” and I should’ve just used “Debugger”.

Anyway, it’s all good and logged for future reference if needed again.

Appreciate,
John…



> John:
> 
> Happy to pass that along. 
> 
> I just checked the kb:
> 
> https://kb.4d.com/assetid=78161 
> 
> --
> Douglas von Roeder
> 949-336-2902
> 
> 
> On Fri, Mar 1, 2019 at 10:58 AM John J Foster  > wrote:
> Hi Doug,
> 
> Thanks!
> 
> Just holding the Shift key down and run (click the green button) from any 
> method appears to have worked.
> 
> Yeah!!!
> 
> Appreciate,
> John…
> 
> 
> 
>> John:
>> 
>> I saw this documented only recently so I thought it was for V17 but I just 
>> checked it in 15.4 - Win server, Mac client. 
>> 
>> Hold down the Shift key to reset the boundaries for the editor windows in 
>> design mode.
>> 
>> In the case of the debugger, create an empty method (I have one called 
>> “aTestDoug”) and type in “Trace”. Hold down the Shift key and click the 
>> green “go” button to run the method. 4D will execute the Trace command and 
>> will open the debugger in the default position. 
>> 
>> For the Explorer, make sure that the Explorer is closed, hold down the Shift 
>> key, and open the Explorer with the mouse.
>> 
>> Before I learned the Shift key trick, I had to resort to throwing out the 
>> config file. From my “4D Text File Locations” document:
>> 
>>  
>> C:\Users\Doug\Application Data\4D\4D Window Bounds 
>> v15\development\[projectForm]
>> Change "explo_preview"
>> Refer to Explorer.json file in 4D/14.5 (OS X)
>>  
>> Debugger Window Settings (and others)
>> c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences
>> 
>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
>> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
>> C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
>> C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14
>> 
>> 
>> --
>> Douglas von Roeder
>> 949-336-2902
>> 
>> 
>> On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech 
>> <4d_tech@lists.4d.com > wrote:
>> Hi All,
>> 
>> Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades to 
>> v16/v17).
>> 
>> In the last few days I’ve experienced a strange Debugger issue (corruption) 
>> that I cannot seem to fix. I think it happened after a crash. What is 
>> happening is that the top parts of the debugger screen, like the toolbar, 
>> are hidden above the top of the debugger screen. It’s like what used to 
>> happen when you tabbed to a variable offscreen and you couldn’t get back to 
>> the top of the screen but weirder.
>> 
>> On the left side pane the Variables is the top and anything above that I do 
>> not have access to. I cannot get to the debugger buttons. I cannot abort 
>> into a method, etc. Expanding the window to full screen doesn’t help. Moving 
>> various splitters doesn’t help. Needless to say it makes debugging a near 
>> impossibility!
>> 
>> I have tried throwing away the application preference folder:
>> 
>> Library->Application Support -> 4D ... have it recreated but that didn’t 
>> help.
>> 
>> I have even downloaded and installed a fresh copy of 4D 15.2. Still no help,
>> 
>> Is there another set of files that controls the debugger screen display?
>> 
>> I think this is a first in over 30 years!
>> 
>> Thanks,
>> John…
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html 
>> 
>> Options: https://lists.4d.com/mailman/options/4d_tech 
>> 
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
>> 
>> **
> 

**
4D Internet Users Group (4D iNUG)
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: Debugger window corruption

2019-03-01 Thread Douglas von Roeder via 4D_Tech
John:

Happy to pass that along.

I just checked the kb:

https://kb.4d.com/assetid=78161

--
Douglas von Roeder
949-336-2902


On Fri, Mar 1, 2019 at 10:58 AM John J Foster  wrote:

> Hi Doug,
>
> Thanks!
>
> Just holding the Shift key down and run (click the green button) from any
> method appears to have worked.
>
> Yeah!!!
>
> Appreciate,
> John…
>
>
>
> John:
>
> I saw this documented only recently so I thought it was for V17 but I just
> checked it in 15.4 - Win server, Mac client.
>
> Hold down the Shift key to reset the boundaries for the editor windows in
> design mode.
>
> In the case of the debugger, create an empty method (I have one called
> “aTestDoug”) and type in “Trace”. Hold down the Shift key and click the
> green “go” button to run the method. 4D will execute the Trace command and
> will open the debugger in the default position.
>
> For the Explorer, make sure that the Explorer is closed, hold down the
> Shift key, and open the Explorer with the mouse.
>
> Before I learned the Shift key trick, I had to resort to throwing out the
> config file. From my “4D Text File Locations” document:
>
>
> C:\Users\Doug\Application Data\4D\4D Window Bounds
> v15\development\[projectForm]
> Change "explo_preview"
> Refer to Explorer.json file in 4D/14.5 (OS X)
>
> Debugger Window Settings (and others)
> c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences
>
> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
> C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
> C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14
>
>
> --
> Douglas von Roeder
> 949-336-2902
>
>
> On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> Hi All,
>>
>> Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades
>> to v16/v17).
>>
>> In the last few days I’ve experienced a strange Debugger issue
>> (corruption) that I cannot seem to fix. I think it happened after a crash.
>> What is happening is that the top parts of the debugger screen, like the
>> toolbar, are hidden above the top of the debugger screen. It’s like what
>> used to happen when you tabbed to a variable offscreen and you couldn’t get
>> back to the top of the screen but weirder.
>>
>> On the left side pane the Variables is the top and anything above that I
>> do not have access to. I cannot get to the debugger buttons. I cannot abort
>> into a method, etc. Expanding the window to full screen doesn’t help.
>> Moving various splitters doesn’t help. Needless to say it makes debugging a
>> near impossibility!
>>
>> I have tried throwing away the application preference folder:
>>
>> Library->Application Support -> 4D ... have it recreated but that didn’t
>> help.
>>
>> I have even downloaded and installed a fresh copy of 4D 15.2. Still no
>> help,
>>
>> Is there another set of files that controls the debugger screen display?
>>
>> I think this is a first in over 30 years!
>>
>> Thanks,
>> John…
>>
>>
>>
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>
>
>
**
4D Internet Users Group (4D iNUG)
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: Debugger window corruption

2019-03-01 Thread Stephen J. Orth via 4D_Tech
John,

Which version of my method are you running?  Is it the one from 2015 that works 
for V13 -> V16?


Steve

*
  Stephen J. Orth
  The Aquila Group, Inc.  Office:  (608) 834-9213
  P.O. Box 690   Mobile:  (608) 347-6447
  Sun Prairie, WI 53590

  E-Mail:  s.o...@the-aquila-group.com
*

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of John J Foster via 
4D_Tech
Sent: Friday, March 1, 2019 12:54 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: John J Foster 
Subject: Ref: Debugger window corruption

Hi Neil,

I searched and found the v15 method you mentioned. It was authored by Stephen 
J. Orth. I created the method and ran it but it didn’t work for me. Not sure 
why.

Although I’ll respond in another email to what did work...

Appreciate,
John…


>> On the left side pane the Variables is the top and anything above that I do 
>> not have access to. I cannot get to the debugger buttons.
> 
> There was a debugger reset method that was posted a few years ago. I don't 
> have the one for v15 but if you search you might be able to find it. I think 
> it was written by Miyako.
> 
> This is the v17 version:
> 
> C_TEXT($tPath)
> 
> $tPath:=Get 4D folder(Active 4D Folder)+\ "4D Window Bounds 
> v"+Substring(Application version;1;2)+Folder separator+\ 
> "runtime"+Folder separator+\ "[projectForm]"+Folder separator+\ 
> "4ddebugger.json"
> 
> If (Test path name($tPath)=Is a document)
>   ON ERR CALL("Blank")
>   DELETE DOCUMENT($tPath)
>   ON ERR CALL("")
> End if
> 
> 
> Neil
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Privacy Disclaimer: This message contains confidential information and is 
> intended only for the named addressee. If you are not the named addressee you 
> should not disseminate, distribute or copy this email. Please delete this 
> email from your system and notify the sender immediately by replying to this 
> email.  If you are not the intended recipient you are notified that 
> disclosing, copying, distributing or taking any action in reliance on the 
> contents of this information is strictly prohibited.
> 
> The Alternative Investments division of UMB Fund Services provides a full 
> range of services to hedge funds, funds of funds and private equity funds.  
> Any tax advice in this communication is not intended to be used, and cannot 
> be used, by a client or any other person or entity for the purpose of (a) 
> avoiding penalties that may be imposed on any taxpayer or (b) promoting, 
> marketing, or recommending to another party any matter addressed herein.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Fwd: Debugger window corruption

2019-03-01 Thread John J Foster via 4D_Tech
Hi Doug,

Thanks!

Just holding the Shift key down and run (click the green button) from any 
method appears to have worked.

Yeah!!!

Appreciate,
John…



> John:
> 
> I saw this documented only recently so I thought it was for V17 but I just 
> checked it in 15.4 - Win server, Mac client. 
> 
> Hold down the Shift key to reset the boundaries for the editor windows in 
> design mode.
> 
> In the case of the debugger, create an empty method (I have one called 
> “aTestDoug”) and type in “Trace”. Hold down the Shift key and click the green 
> “go” button to run the method. 4D will execute the Trace command and will 
> open the debugger in the default position. 
> 
> For the Explorer, make sure that the Explorer is closed, hold down the Shift 
> key, and open the Explorer with the mouse.
> 
> Before I learned the Shift key trick, I had to resort to throwing out the 
> config file. From my “4D Text File Locations” document:
> 
>  
> C:\Users\Doug\Application Data\4D\4D Window Bounds 
> v15\development\[projectForm]
> Change "explo_preview"
> Refer to Explorer.json file in 4D/14.5 (OS X)
>  
> Debugger Window Settings (and others)
> c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences
> 
> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
> \Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
> C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
> C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14
> 
> 
> --
> Douglas von Roeder
> 949-336-2902
> 
> 
> On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech 
> <4d_tech@lists.4d.com > wrote:
> Hi All,
> 
> Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades to 
> v16/v17).
> 
> In the last few days I’ve experienced a strange Debugger issue (corruption) 
> that I cannot seem to fix. I think it happened after a crash. What is 
> happening is that the top parts of the debugger screen, like the toolbar, are 
> hidden above the top of the debugger screen. It’s like what used to happen 
> when you tabbed to a variable offscreen and you couldn’t get back to the top 
> of the screen but weirder.
> 
> On the left side pane the Variables is the top and anything above that I do 
> not have access to. I cannot get to the debugger buttons. I cannot abort into 
> a method, etc. Expanding the window to full screen doesn’t help. Moving 
> various splitters doesn’t help. Needless to say it makes debugging a near 
> impossibility!
> 
> I have tried throwing away the application preference folder:
> 
> Library->Application Support -> 4D ... have it recreated but that didn’t help.
> 
> I have even downloaded and installed a fresh copy of 4D 15.2. Still no help,
> 
> Is there another set of files that controls the debugger screen display?
> 
> I think this is a first in over 30 years!
> 
> Thanks,
> John…
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html 
> 
> Options: https://lists.4d.com/mailman/options/4d_tech 
> 
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
> 
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Ref: Debugger window corruption

2019-03-01 Thread John J Foster via 4D_Tech
Hi Neil,

I searched and found the v15 method you mentioned. It was authored by Stephen 
J. Orth. I created the method and ran it but it didn’t work for me. Not sure 
why.

Although I’ll respond in another email to what did work...

Appreciate,
John…


>> On the left side pane the Variables is the top and anything above that I do 
>> not have access to. I cannot get to the debugger buttons.
> 
> There was a debugger reset method that was posted a few years ago. I don't 
> have the one for v15 but if you search you might be able to find it. I think 
> it was written by Miyako.
> 
> This is the v17 version:
> 
> C_TEXT($tPath)
> 
> $tPath:=Get 4D folder(Active 4D Folder)+\
> "4D Window Bounds v"+Substring(Application version;1;2)+Folder separator+\
> "runtime"+Folder separator+\
> "[projectForm]"+Folder separator+\
> "4ddebugger.json"
> 
> If (Test path name($tPath)=Is a document)
>   ON ERR CALL("Blank")
>   DELETE DOCUMENT($tPath)
>   ON ERR CALL("")
> End if 
> 
> 
> Neil
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Privacy Disclaimer: This message contains confidential information and is 
> intended only for the named addressee. If you are not the named addressee you 
> should not disseminate, distribute or copy this email. Please delete this 
> email from your system and notify the sender immediately by replying to this 
> email.  If you are not the intended recipient you are notified that 
> disclosing, copying, distributing or taking any action in reliance on the 
> contents of this information is strictly prohibited.
> 
> The Alternative Investments division of UMB Fund Services provides a full 
> range of services to hedge funds, funds of funds and private equity funds.  
> Any tax advice in this communication is not intended to be used, and cannot 
> be used, by a client or any other person or entity for the purpose of (a) 
> avoiding penalties that may be imposed on any taxpayer or (b) promoting, 
> marketing, or recommending to another party any matter addressed herein.

**
4D Internet Users Group (4D iNUG)
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: Debugger window corruption

2019-03-01 Thread Douglas von Roeder via 4D_Tech
John:

I saw this documented only recently so I thought it was for V17 but I just
checked it in 15.4 - Win server, Mac client.

Hold down the Shift key to reset the boundaries for the editor windows in
design mode.

In the case of the debugger, create an empty method (I have one called
“aTestDoug”) and type in “Trace”. Hold down the Shift key and click the
green “go” button to run the method. 4D will execute the Trace command and
will open the debugger in the default position.

For the Explorer, make sure that the Explorer is closed, hold down the
Shift key, and open the Explorer with the mouse.

Before I learned the Shift key trick, I had to resort to throwing out the
config file. From my “4D Text File Locations” document:


C:\Users\Doug\Application Data\4D\4D Window Bounds
v15\development\[projectForm]
Change "explo_preview"
Refer to Explorer.json file in 4D/14.5 (OS X)

Debugger Window Settings (and others)
c:\Users\dvonroeder\Application Data\4D\4D Preferences v13.4DPreferences

\Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v14
\Volumes\C\Users\Doug\Application Data\4D Server\4D Window Bounds v15
C:\Users\Doug\AppData\Roaming\4D\4D Window Bounds v15
C:\Users\Doug\AppData\Roaming\4D Server\4D Window Bounds v14


--
Douglas von Roeder
949-336-2902


On Fri, Mar 1, 2019 at 10:08 AM John J Foster via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi All,
>
> Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades
> to v16/v17).
>
> In the last few days I’ve experienced a strange Debugger issue
> (corruption) that I cannot seem to fix. I think it happened after a crash.
> What is happening is that the top parts of the debugger screen, like the
> toolbar, are hidden above the top of the debugger screen. It’s like what
> used to happen when you tabbed to a variable offscreen and you couldn’t get
> back to the top of the screen but weirder.
>
> On the left side pane the Variables is the top and anything above that I
> do not have access to. I cannot get to the debugger buttons. I cannot abort
> into a method, etc. Expanding the window to full screen doesn’t help.
> Moving various splitters doesn’t help. Needless to say it makes debugging a
> near impossibility!
>
> I have tried throwing away the application preference folder:
>
> Library->Application Support -> 4D ... have it recreated but that didn’t
> help.
>
> I have even downloaded and installed a fresh copy of 4D 15.2. Still no
> help,
>
> Is there another set of files that controls the debugger screen display?
>
> I think this is a first in over 30 years!
>
> Thanks,
> John…
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
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: Debugger window corruption

2019-03-01 Thread Chuck Miller via 4D_Tech
You should try at least 15.6.

Regards

Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Mar 1, 2019, at 1:08 PM, John J Foster via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades to 
> v16/v17).
> 
> In the last few days I’ve experienced a strange Debugger issue (corruption) 
> that I cannot seem to fix. I think it happened after a crash. What is 
> happening is that the top parts of the debugger screen, like the toolbar, are 
> hidden above the top of the debugger screen. It’s like what used to happen 
> when you tabbed to a variable offscreen and you couldn’t get back to the top 
> of the screen but weirder.
> 
> On the left side pane the Variables is the top and anything above that I do 
> not have access to. I cannot get to the debugger buttons. I cannot abort into 
> a method, etc. Expanding the window to full screen doesn’t help. Moving 
> various splitters doesn’t help. Needless to say it makes debugging a near 
> impossibility!
> 
> I have tried throwing away the application preference folder:
> 
> Library->Application Support -> 4D ... have it recreated but that didn’t help.
> 
> I have even downloaded and installed a fresh copy of 4D 15.2. Still no help,
> 
> Is there another set of files that controls the debugger screen display?
> 
> I think this is a first in over 30 years!
> 
> Thanks,
> John…

**
4D Internet Users Group (4D iNUG)
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: Printing 4D Write to PDF via Windows 10 "Microsoft Print to PDF"

2019-03-01 Thread Chuck Miller via 4D_Tech
You don’t specify but what version of 4D.I think you may have rot use PDF 
center 1.2 to make this work.
I also don’t see in your code any new area command so perhaps that is the 
problem


Regards

Chuck


 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Mar 1, 2019, at 12:01 PM, Bill Hutten via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi all - Apologies in advance - if this has been discussed and I'm just 
> missing it, please point me to the archives.
> 
> I need to print 4D Write docs (not 4D Write Pro), on Windows 10, to PDF, 
> using the built-in "Microsoft Print to PDF" printer. This is the code I 
> curently have, cobbled togeather from various sources:
> 
> SET CURRENT PRINTER("Microsoft Print to PDF")
> SET PRINT OPTION(Spooler document name option;$fname)
> SET PRINT OPTION(Destination option;2;$path)  
> WR SET PRINT OPTION ($area;wr spooler document name option;$fname)
> WR SET PRINT OPTION ($area;wr destination option;wr send to file;0;$path)
> OPEN PRINTING JOB
> WR PRINT ($area;0;1)
> CLOSE PRINTING JOB
> 
> It works, in that a PDF is created, with the right $fname, at the right 
> $path. It doesn't work, in that the PDF is 0 bytes in size.
> 
> 
> Anyone have tested code that solves this problem?
> 
> - bill

**
4D Internet Users Group (4D iNUG)
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: Debugger window corruption

2019-03-01 Thread Dennis, Neil via 4D_Tech
> On the left side pane the Variables is the top and anything above that I do 
> not have access to. I cannot get to the debugger buttons.

There was a debugger reset method that was posted a few years ago. I don't have 
the one for v15 but if you search you might be able to find it. I think it was 
written by Miyako.

This is the v17 version:

C_TEXT($tPath)

$tPath:=Get 4D folder(Active 4D Folder)+\
"4D Window Bounds v"+Substring(Application version;1;2)+Folder separator+\
"runtime"+Folder separator+\
"[projectForm]"+Folder separator+\
"4ddebugger.json"

If (Test path name($tPath)=Is a document)
ON ERR CALL("Blank")
DELETE DOCUMENT($tPath)
ON ERR CALL("")
End if 


Neil


















Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Debugger window corruption

2019-03-01 Thread John J Foster via 4D_Tech
Hi All,

Mac OS 12.6 4D 15.2 (have to stay with this version until client upgrades to 
v16/v17).

In the last few days I’ve experienced a strange Debugger issue (corruption) 
that I cannot seem to fix. I think it happened after a crash. What is happening 
is that the top parts of the debugger screen, like the toolbar, are hidden 
above the top of the debugger screen. It’s like what used to happen when you 
tabbed to a variable offscreen and you couldn’t get back to the top of the 
screen but weirder.

On the left side pane the Variables is the top and anything above that I do not 
have access to. I cannot get to the debugger buttons. I cannot abort into a 
method, etc. Expanding the window to full screen doesn’t help. Moving various 
splitters doesn’t help. Needless to say it makes debugging a near impossibility!

I have tried throwing away the application preference folder:

Library->Application Support -> 4D ... have it recreated but that didn’t help.

I have even downloaded and installed a fresh copy of 4D 15.2. Still no help,

Is there another set of files that controls the debugger screen display?

I think this is a first in over 30 years!

Thanks,
John…



**
4D Internet Users Group (4D iNUG)
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: Printing 4D Write to PDF via Windows 10 "Microsoft Print to PDF"

2019-03-01 Thread Bill Hutten via 4D_Tech
On Fri, Mar 1, 2019, at 1:16 PM, Koen Van Hooreweghe via 4D_Tech wrote:

> I think the OPEN/CLOSE PRINTING JOB is not needed and perhaps causing 
> problems with 4D Write.

Interestingly enough if those are removed the code does not print anything - no 
PDF file is created. They're used in a 4D TechNote example, but with 
PDFCreator, so I was not sure


- bill
**
4D Internet Users Group (4D iNUG)
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: Printing 4D Write to PDF via Windows 10 "Microsoft Print to PDF"

2019-03-01 Thread Koen Van Hooreweghe via 4D_Tech
Hi Bill,

I think the OPEN/CLOSE PRINTING JOB is not needed and perhaps causing problems 
with 4D Write.

HTH
Koen

> Op 1 mrt. 2019, om 18:01 heeft Bill Hutten via 4D_Tech <4d_tech@lists.4d.com> 
> het volgende geschreven:
> 
> It works, in that a PDF is created, with the right $fname, at the right 
> $path. It doesn't work, in that the PDF is 0 bytes in size.
> 
> 
> Anyone have tested code that solves this problem?
> 




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Aalter
Belgium
tel +32 495 511.653

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Printing 4D Write to PDF via Windows 10 "Microsoft Print to PDF"

2019-03-01 Thread Bill Hutten via 4D_Tech
Hi all - Apologies in advance - if this has been discussed and I'm just missing 
it, please point me to the archives.

I need to print 4D Write docs (not 4D Write Pro), on Windows 10, to PDF, using 
the built-in "Microsoft Print to PDF" printer. This is the code I curently 
have, cobbled togeather from various sources:

SET CURRENT PRINTER("Microsoft Print to PDF")
SET PRINT OPTION(Spooler document name option;$fname)
SET PRINT OPTION(Destination option;2;$path)  
WR SET PRINT OPTION ($area;wr spooler document name option;$fname)
WR SET PRINT OPTION ($area;wr destination option;wr send to file;0;$path)
OPEN PRINTING JOB
WR PRINT ($area;0;1)
CLOSE PRINTING JOB

It works, in that a PDF is created, with the right $fname, at the right $path. 
It doesn't work, in that the PDF is 0 bytes in size.


Anyone have tested code that solves this problem?

- bill
**
4D Internet Users Group (4D iNUG)
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: LEP that will quit Chrome?

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
A correction: At least in Windows Server 2008 *R2* Powershell is pre-installed.
So I think it is the same with Windows 7.

> Can't speak for Windows7 for sure, but in all newer versions it is
> integrated.
>
> >
> > is powershell now (win7+ standard?

Regards
Lutz
**
4D Internet Users Group (4D iNUG)
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: LEP that will quit Chrome?

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
Can't speak for Windows7 for sure, but in all newer versions it is
integrated.

> 
> is powershell now (win7+ standard?


--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
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: LEP that will quit Chrome?

2019-03-01 Thread Chip Scheide via 4D_Tech
is powershell now (win7+ standard?
CHip

On Fri, 1 Mar 2019 08:53:08 +, Epperlein, Lutz (agendo) via 4D_Tech 
wrote:
> We use powershell.
> In powershell you can do
> 
> Get-Process chrome
> 
> And if you want to kill the process:
> 
> Get-Process chrome | Stop-Process
> 
> Calling with LEP can do this way:
> 
> $vtxtBatchName:="powershell.exe -executionpolicy remotesigned 
> -OutputFormat Text "+\
>   "-File \""+$PathToScript+"\""+$parameter
> LAUNCH EXTERNAL PROCESS($vtxtBatchName;$standard_input_x;$standard_output_x\
>;$standard_error_x)
> 
> In this case you have to write a small script in beforehand.
> 
> Another way of calling powershell commands with LEP is using the 
> standard input of the shell:
> 
> $command:="cd '"+Get 4D folder(Logs folder)+"'; $chdate = Get-Date "
> $psScript:="powershell -NoProfile -Command -"
> CONVERT FROM TEXT($command;"UTF-8";$standard_input_x)
> LAUNCH EXTERNAL 
> PROCESS($psScript;$standard_input_x;$standard_output_x;$standard_error_x)
> 
> 
> HTH
> Lutz
> 
> --  
> Lutz Epperlein  
> --
> Agendo Gesellschaft für politische Planung mbH
> Köpenicker Str. 9
> 10997 Berlin
> http://www.agendo.de/
> --
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
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: Switching from FTP to Dropbox

2019-03-01 Thread Randy Jaynes via 4D_Tech
Tim,

I would think you could use their API with the HTTP Request command, and maybe 
some cURL calls for the actual file downloading.

The API looks similar to other REST APIs we’ve had to work with, so it _looks_ 
like it should work similarly.

Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com  • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 
Please send all email contacts to supp...@printpoint.com 






> On Mar 1, 2019, at 10:20 AM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> I’m considering switching from using FTP to host update files to using my 
> Dropbox account. I’m wondering if anyone has written some 4D code that allows 
> uploading files to Dropbox and downloading files from Dropbox. 
> 
> I could get by uploading files to Dropbox via the macOS Finder integration 
> option. For downloading a dropbox file, can you just use the 4D HTTP Request 
> command?
> 
> Has somebody written a Dropbox Component?
> 
> Tim
> 
> *
> Tim Nevels
> Innovative Solutions
> 785-749-3444
> timnev...@mac.com 
> *
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Switching from FTP to Dropbox

2019-03-01 Thread Tim Nevels via 4D_Tech
I’m considering switching from using FTP to host update files to using my 
Dropbox account. I’m wondering if anyone has written some 4D code that allows 
uploading files to Dropbox and downloading files from Dropbox. 

I could get by uploading files to Dropbox via the macOS Finder integration 
option. For downloading a dropbox file, can you just use the 4D HTTP Request 
command?

Has somebody written a Dropbox Component?

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
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: 4D Web Log Out

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
I'm not really understand your problem. What do you mean with "the browser 
still persists with the username and password"? Does it mean that you send 
these credentials with every request to the web server?

What we do is this:
If the browser makes a request without a cookie or with wrong cookie, the 
server sends a http 401 response and the user gets a login dialog, after 
checking the credentials on the server side the server sends a cookie. All 
subsequent requests will carry the cookie, the browser does this for you. And 
the server checks at every request if the cookie is valid.
If the user press the logout button the server sends a cookie as a response 
with a cookie expiration of 0 or an expiration date in the past.
The built in 4D sessions work the same way AFAIK.

Regards
Lutz

--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
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: LEP that will quit Chrome?

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
We use powershell.
In powershell you can do

Get-Process chrome

And if you want to kill the process:

Get-Process chrome | Stop-Process

Calling with LEP can do this way:

$vtxtBatchName:="powershell.exe -executionpolicy remotesigned -OutputFormat 
Text "+\
"-File \""+$PathToScript+"\""+$parameter
LAUNCH EXTERNAL PROCESS($vtxtBatchName;$standard_input_x;$standard_output_x\
   ;$standard_error_x)

In this case you have to write a small script in beforehand.

Another way of calling powershell commands with LEP is using the standard input 
of the shell:

$command:="cd '"+Get 4D folder(Logs folder)+"'; $chdate = Get-Date "
$psScript:="powershell -NoProfile -Command -"
CONVERT FROM TEXT($command;"UTF-8";$standard_input_x)
LAUNCH EXTERNAL 
PROCESS($psScript;$standard_input_x;$standard_output_x;$standard_error_x)


HTH
Lutz

--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
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: 4D Web Log Out

2019-03-01 Thread Douglas Cryer via 4D_Tech
Dani,

Re: Have you looked at the "WEB CLOSE SESSION” command?
   That is probably what you are looking for assuming you are using the 
built in 4D sessions.

Yes I have looked extensively at that command and I am using it.  The examples 
all deal with how you would use it with regards the "On Web Connection" method 
and handling storage of session data for future use.

The problem is that the browser still persists with the username and password 
so it is able to re-authenticate getting a new session and continuing as if the 
user was OK.  The only way we can currently think of is to make a call from the 
logout page with invalid credentials forcing a rejection and thus resetting any 
good credentials that are persisting on the client.

We plan to try this today but I feel this is wrong and I must be missing 
something.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.com 





**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**