RE: Kick off compile and build on remote server

2019-03-19 Thread Stephen J. Orth via 4D_Tech
Jim, Most likely a security issue with the user account your using. How is the account configure? Have you tried using Windows scheduler to run this and see what happens? Steve * Stephen J. Orth

Kick off compile and build on remote server

2019-03-19 Thread Jim Hays via 4D_Tech
We're having trouble with "net stop" and "net start" running from a batch file on a Windows Server. Unless we right-click and run as Administrator, access is denied to stop or start a service, but we want this to happen "unattended" on the server. We could kick it off from a client, or have it

RE: Printing a PDF document from 4D

2019-03-19 Thread Neal Schaefer via 4D_Tech
Oops - quick correction on the syntax: HTML to DOCX: Launch External Process ("C:\\temp\\convertdoc.exe c:\\temp\\*.htm c:\\temp\\*.docx /overwrite"; $blank;$outputStream_t;$errorStream_t) HTML to PDF: Launch External Process ("C:\\temp\\convertdoc.exe c:\\temp\\*.htm c:\\temp\\*.pdf

Re: Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
Sorry Rob, my mistake! I misread QPDF’s documentation and assumed the exact opposite, that QPDF Print Document was not implemented on Windows! duh!! I’ll take another look for sure. cheers, julio > On Mar 19, 2019, at 11:58 AM, Rob Laveaux via 4D_Tech <4d_tech@lists.4d.com >

Printing a PDF document from 4D

2019-03-19 Thread Neal Schaefer via 4D_Tech
We've been dealing with this issue with regard to converting HTML we generate from 4D to MS Word DOCX, and in the process, we ended up with a nice multi-format conversion tool that supports PDF as well. For years we've been using a free Windows desktop app called MultiDoc Converter by a

Re: Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
Thanks to all that replied, Stephen J. Orth’s Win32API is the winning solution. That’s why this is is awesome. cheers, julio > On Mar 19, 2019, at 4:42 PM, ADeeg via 4D_Tech <4d_tech@lists.4d.com> wrote: > > 4D Tech mailing list wrote >> Has anyone here had the need to print a PDF document

Re: Printing a PDF document from 4D

2019-03-19 Thread ADeeg via 4D_Tech
4D Tech mailing list wrote > Has anyone here had the need to print a PDF document from 4D, and found a > solution? > > I am not talking about generating a PDF from 4D. I have an existing PDF > document and I need 4D to print it for me! Exactly, user selects a PDF > document and I have 4D command

Re: Printing a PDF document from 4D

2019-03-19 Thread Rob Laveaux via 4D_Tech
> On 19 Mar 2019, at 15:27, Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > @Luc Devar, QPDF, also from pluggers.nl , does not > support printing on Windows. Hi Julio, What makes you conclude that? QPDF Print Document works just fine on Windows. It is

Printing a PDF document from 4D

2019-03-19 Thread Darin Schroeder via 4D_Tech
We use GhostScript via LEP to convert the file from a PDF to a PCL document. Afterwards we open a connection to the printer using TCP commands and send with TCP_SendBlob. We do many PDFs this way and it works great. Cons are that it has to be an IP-configured printer. Pros are that it's silent.

RE: Printing a PDF document from 4D

2019-03-19 Thread Stephen J. Orth via 4D_Tech
Julio, Here is how we use this command to print: $returncode:=sys_ShellExecute ("print";$path;"";"";SW_HIDE) The $path variable contains the full path to the document I want to print. Best, Steve * Stephen J. Orth

Re: Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
I do have PDF Viewer, but on Windows you can’t print from an off-screen area, which means yo have to display the pdf on a form before printing it. I forgot to mention that I need to just “print” and external PDF. Printing has to happen in background and in some cases for 4D Server. So, no user

Re: Printing a PDF document from 4D

2019-03-19 Thread Keisuke Miyako via 4D_Tech
printing an HTML is not always easy (especially pagination) even with a good media specific CSS. https://github.com/miyako/4d-component-wkhtmltopdf besides, printing is a blocking process (only 1 job at a time) and not thread safe so I think it is preferable to generate PDF by code than to

Re: Printing a PDF document from 4D

2019-03-19 Thread Tim Nevels via 4D_Tech
On Mar 19, 2019, at 8:50 AM, Julio Carneiro wrote: > Has anyone here had the need to print a PDF document from 4D, and found a > solution? > > I am not talking about generating a PDF from 4D. I have an existing PDF > document and I need 4D to print it for me! Exactly, user selects a PDF >

Re: Printing a PDF document from 4D

2019-03-19 Thread Charles Miller via 4D_Tech
Not sure if this will work but how about creating a web area in form load the document and then print it On Tue, Mar 19, 2019 at 7:13 AM Julio Carneiro via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Has anyone here had the need to print a PDF document from 4D, and found a > solution? > > I am not

Re: Printing a PDF document from 4D

2019-03-19 Thread UKVetDerm via 4D_Tech
RE: There is another plugin from pluggers.nl which handles viewing and printing of pdf documents too: PDFViewer. I have been using it on macOS for years. Excellent support from Rob for the rare occasions I needed it. I would second this! Steve

Re: Printing a PDF document from 4D

2019-03-19 Thread Koen Van Hooreweghe via 4D_Tech
Hi Julio, There is another plugin from pluggers.nl which handles viewing and printing of pdf documents too: PDFViewer. I have been using it on macOS for years. Excellent support from Rob for the rare occasions I needed it. Kind regards, Koen > Op 19 mrt. 2019, om 12:39 heeft Luc Devar via

Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
Has anyone here had the need to print a PDF document from 4D, and found a solution? I am not talking about generating a PDF from 4D. I have an existing PDF document and I need 4D to print it for me! Exactly, user selects a PDF document and I have 4D command it to be printed. I can use LEP, a

Re: Socket Communication

2019-03-19 Thread Paul Dennis via 4D_Tech
Just watched the 4D Method presentation from Matt. Very interesting. Thanks to Matt and 4D Method. Paul -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive:

Re: Simulated Multiuser Testing

2019-03-19 Thread Maurice Inzirillo - AJAR via 4D_Tech
Hello Robert, Thanks to 4D Service we were able to perform tests to simulate 1400 4D Remote connections with 4D server in order to verify, for one of our customers, the ability of 4D Server v16 to support the load on a WAN network for their specific application. For these tests we had to play

Re: $D V17 as a service

2019-03-19 Thread GI -AJAR via 4D_Tech
Hi Pat. We had the same issue some time ago and figured out how to solve the problem. The issue was that we use the new architecture for deploymemt and with this new architecture, the datafile location is stored in a xml file in the user appdata of the user which launch the application the

Re: Simulated Multiuser Testing

2019-03-19 Thread Robert ListMail via 4D_Tech
Tom, thanks for your input. I’ll let you know if I pursue this and come up with something interesting. R Sent from my iPhone > On Mar 15, 2019, at 6:28 PM, Tom Benedict wrote: > > We used it a lot to try to understand 4D Server “anomalies” but in the end we > never really came up with