Re: Multiple instances of 4D Client

2020-04-17 Thread Darin Schroeder via 4D_Tech
You can duplicate the folder, but you have to rename the executable too ...
so 4D.exe becomes 4D-A.exe and 4D-B.exe ... something unique.

I also create a folder called 'clientLocal' next to the executable for all
the plugins, components, resources, etc. On windows 10, I had to change the
security properties of the clientLocal folder by allowing 'Everyone' to
have full control.

This will allow multiple clients to the same server, so long as you have
the licenses to support it.

Darin

On Fri, Apr 17, 2020 at 4:26 PM Kevin Abraham via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Don’t tell me Windows 10 for 4Dv16.2 has broken this but it is incredibly
> easy and we have been doing this with up to 4 Servers since v6 all the way
> to v13, so I would be very surprised if this ability was changed by Window
> or 4D.
>
> Simply go find your 4D Installation, in my case 4D v13.3 in Program Files
> (x86). Then make as many copies of that 4D folder as you need, in your case
> 1 and in my case 4. They will be named 4D v13.3 - Copy, Copy(2), etc. by
> windows when you create them in Program Files. Then simply create a
> shortcut to each 4D.exe and put them on the desktop. If you have 4
> installed copies of 4D you will have 4 Shorcuts to 4 different 4D.exe files
> and can connect to up to 4 different Servers at the same time.
>
> Now what you can’t do, is connect any more than one of them to a single
> Server at the same time, i.e. you can not have 2 Clients connected to the
> same server at the same time (at least not the way I described above, maybe
> someone knows how, but not me).
>
> Good Luck,
> Kevin Abraham
> Digital Retirement Solutions
> kabra...@drs401k.com
>
> > On Apr 2, 2020, at 1:13 PM, Ken Geiger Gmail via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hi all,
> >
> > Dumb question. I have a customer with two 4D C/S databases that are
> running simultaneously on two instances of 4D Server. He would like to
> launch two instances of 4D Client on his workstation so he dies not have to
> keep quitting and launching the Client to access either of his apps.
> Windows 10, 4D 16.2.
> >
> > Regards,
> >
> > Ken Geiger
> >
> > Sent from my iPhone
> > **
> > 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
> **
**
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 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. No additional
programs open up or flash windows on the workstation. And it's pretty
fast.

Darin

> Julio, Sorry, coming into this late... Do you have WIN32API? If so, you can 
> simply use the sys_shellexecute command to print. It will use the native 
> Windows application. Best, 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 
> *
**
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 an existing PDF file with 4D silently.

2019-01-26 Thread Darin Schroeder via 4D_Tech
We do this as well, but didn't want to call up the program for printing. So
we converted the PDF to PCL using GhostScript, then send the PCL directly
to the printer using TCP. Of course this doesn't work with USB printers,
although a similar serial method could work I suppose. And the printer has
to support PCL.

This method is truly silent, no additional windows pop up and it's pretty
quick as well.

If interested I could find the methods and give you a quick rundown.

Darin

On Fri, Jan 25, 2019 at 8:17 PM rooftop99--- via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Thanks Matt!
>
> I have been testing command-line printing with Launch External Process.
> It holds some promise… Thanks for the additional details on the process.
>
> I look forward to the webinar session March 13th on your WebSockets
> component.  I have seen enough of your work to know it will be topnotch and
> groundbreaking for most 4D Developers.  Thanks in advance for sharing!
>
> Kirk
>
> > On Jan 25, 2019, at 3:18 PM, spiffyguy via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Hi Kirk,
> >
> > I use launch external process and the "lpr" command on both Mac and
> Windows.
> >
> > For Mac it is built in.  On windows you need to go to the control panel
> > (win7 and up) or settings (win10) and look for "LPR Port Monitor" in the
> > "turn windows features on or off" section.  (If you have windows pro,
> it's
> > not an option for Windows Home)
> >
> > Depending on the network you could just make sure the lpr command
> line
> > is installed on the server and have all the printers setup on the
> server.
> > Then either have the client / web interface choose a printer or have a
> > default based on the machine requesting the PDF to be printed.
> >
> > Something like this should work right out of the box on Mac.  Windows it
> > changes only slightly based on the path of the PDF.
> >
> > You can get the a $printerName to use from the command PRINTERS LIST.
> >
> > LAUNCH EXTERNAL PROCESS("lpr -P "+$printerName+" "+Replace string(Convert
> > path system to POSIX($pathToPDF);" ";"\\ "))
> >
> > - Matt
> >
> >
> >
> >
> > --
> > Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> > **
> > 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
> **
**
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: How to print a document from LEP?

2018-12-17 Thread Darin Schroeder via 4D_Tech
Bob,

Is the printer you are using IP-based and understand PCL? If it is, we
basically turn the PDF into PCL using GhostScript (using LEP) and then push
the PCL to the printer using TCP commands.

This only works for PDF with GhostScript though. Maybe there's a PCL
convertor for other programs, but I'm not sure about that.

It's pretty straightforward ... TCP_Open, TCP_SendBLOB, TCP_Close.
Occasionally you may get an error with TCP_Open if the connection is
refused if the printer is busy, but a simple delay generally works the
second time around.

Darin



On Mon, Dec 17, 2018 at 2:04 PM Bob Miller via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hi Everyone,
>
> This is a most fundamental thing, but I've now wasted enough time on it
> that I think that either I should take some time off OR lay off the
> holiday egg nog (maybe both).
>
> If I programatically create a file using 4D, such as an Acrobat PDF file
> or an Excel file, and then I want to print it from 4D-Windows (yes, we
> have users who want to have things waiting for them _on the printer_ in
> the morning), how can I do this?
>
> I know the path to Acrobat reader and to Excel.  I can print from both of
> them by bringing up the command line (Windows) and typing in something
> like C:\path_to_Acrobat\AcroRd32.exe /tor
> c:\path_to_Excel\Excel.exe 
>
> However, I can't get these to work with LEP.  I'm sure I'm missing
> something fundamental.
>
> Thoughts?
>
>
> Bob Miller
> Chomerics, a division of Parker Hannifin Corporation
>
>
> ll
> "PLEASE NOTE: The preceding information may be confidential or privileged.
> It only should be used or disseminated for the purpose of conducting
> business with Parker. If you are not an intended recipient, please notify
> the sender by replying to this message and then delete the information from
> your system. Thank you for your cooperation."
> **
> 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: Sending Text Messages From 4D

2018-08-22 Thread Darin Schroeder via 4D_Tech
Tim, we've been using Twilio with a lot of success.

https://www.twilio.com/sms

Darin

On Wed, Aug 22, 2018 at 9:04 AM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I have a client that has asked me to add the option to send text messages
> to cell phones from 4D. I know this is possible via some websites or web
> services for a fee. Has anyone done this and can recommend a web service
> that you were able to use from 4D to do this?
>
> 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
**

Re: [off] eCommission is hiring in Austin - Let's talk at the Summit!

2018-04-04 Thread Darin Schroeder via 4D_Tech
I didn't realize that it would hide my email ... maybe if I type is as
darin[dot]schroeder at ecommission[dot]com?

Thanks,

Darin Schroeder

On Wed, Apr 4, 2018 at 12:05 PM, Danilo Magro via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Uh, sorry, I wasn't clear enough!
>
> I only wanted to write to the original poster here on the NUG, but what I
> read is:
>
> > I'll be at the Summit next week in Washington. If you're interested in
> > finding out more, send me an email off-list to
> > [hidden email] and we can talk further.
>
> and there's no way to send the email from the NUG itself because of the
> error I quoted earlier. It has to be something related to the NUG I'm not
> aware of.
>
> Danilo
>
>
>
>
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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
> **
>
**
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
**

[off] eCommission is hiring in Austin - Let's talk at the Summit!

2018-04-01 Thread Darin Schroeder via 4D_Tech
eCommission is the #1 provider of commission advance services to real
estate professionals in the United States. We are the longest operating and
most established company in the real estate commission advance industry and
4D plays a big part in it.

We're looking for 4D programmers of all skill levels to help us provide
even better service to the thousands of satisfied REALTORS® it serves
nationwide each year.

The catch? The job is in Austin. Remote work is not an option.

Why Austin?

It's great here
It’s (mostly) warm year-round
Nature is plentiful
There’s no shortage of great food
It has live music every single night of the week
Austinites are laid-back and friendly
Austin has been called the next Silicon Valley
Did I mention it's great here?

I'll be at the Summit next week in Washington. If you're interested in
finding out more, send me an email off-list to
darin.schroe...@ecommission.com and we can talk further.

See you next week.

Darin Schroeder
Director, IT
eCommission Financial Services
https://www.ecommission.com
**
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
**