Re: 4D Write (v15) Images Slanted

2018-09-12 Thread Chip Scheide via 4D_Tech

just make sure that the jpeg is saved as the least compression possible
(in photoshop save as image quality 12)
the final image should come out OK

On Wed, 12 Sep 2018 22:11:26 +0200, Peter Jakobsson via 4D_Tech wrote:
> Hi
> 
> It appears I’ve solved this - it needed to be a JPEG. But I presume 
> this won’t print too well.
> 
> 
>> On 12 Sep 2018, at 22:05, Peter Jakobsson via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> appears slanted at a 30 degree angle
> 
> **
> 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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Dani Beaubien via 4D_Tech
There is a risk using a particular version of utility software that is not 
being actively developed. There are a years of bug fixes and compatibility 
fixes that are not there and there is always the risk that a future Windows or 
4D update could break the solution.

With the strong focus on software security, audits of installed software 
highlight software that is out of date or no longer receiving updates. PDF 
Creator v1.7 would fall in to the category.

Always something to consider as well.


> On Sep 12, 2018, at 2:00 PM, Peter Jakobsson via 4D_Tech 
> <4d_tech@lists.4d.com > wrote:
> 
> 
> 
>> On 12 Sep 2018, at 21:22, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com 
>> > wrote:
>> 
>> PDF Creator 1.7 works just fine on Windows 10. No problems. And it has many 
>> more configuration options than the built in Window 10 PDF driver. And it 
>> does not have a nuisance bug the Windows 10 driver has (see below). Now you 
>> have a choice. 
> 
> Very interesting and useful post - thanks !
> 
> The 4D code is configured to use PDF Creator 1.7 at the moment. It would be 
> good if I could just install PDF Creator on Windows 10 and have it work as 
> before without any code modifications. I think I will try this.
> 
> Peter
> 
> **
> 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: 4D Write (v15) Images Slanted

2018-09-12 Thread Peter Jakobsson via 4D_Tech
Hi

It appears I’ve solved this - it needed to be a JPEG. But I presume this won’t 
print too well.


> On 12 Sep 2018, at 22:05, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> appears slanted at a 30 degree angle

**
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 Write (v15) Images Slanted

2018-09-12 Thread Peter Jakobsson via 4D_Tech
Hi

I looked back in the archive for an answer to this one and found some useful 
posts regarding DPI etc. However when I paste an image into 4D Write (legacy 
version), the image appears slanted at a 30 degree angle (roughly). Have tried 
forcing the image into both 300 dpi and 600 dpi in Photoshop but still get the 
same result.

It’s a company logo for a document header, so no more than 1990’s feature set 
required.

Has anyone seen this phenomenon that can point me at what the cause is ?

Regards

Peter

**
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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Peter Jakobsson via 4D_Tech


> On 12 Sep 2018, at 21:22, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> PDF Creator 1.7 works just fine on Windows 10. No problems. And it has many 
> more configuration options than the built in Window 10 PDF driver. And it 
> does not have a nuisance bug the Windows 10 driver has (see below). Now you 
> have a choice. 

Very interesting and useful post - thanks !

The 4D code is configured to use PDF Creator 1.7 at the moment. It would be 
good if I could just install PDF Creator on Windows 10 and have it work as 
before without any code modifications. I think I will try this.

Peter

**
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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Tim Nevels via 4D_Tech
On Sep 12, 2018, at 2:00 PM, Kirk Brooks wrote:

> Win10 has a native PDF print engine like MacOS does. You can use it.
> I don't think PDFCreator 1.7 whatever will even run on Win10 (but you
> probably found that out).

PDF Creator 1.7 works just fine on Windows 10. No problems. And it has many 
more configuration options than the built in Window 10 PDF driver. And it does 
not have a nuisance bug the Windows 10 driver has (see below). Now you have a 
choice. 

But you MUST use PDF Creator 1.7 version. Version 2.x or 3.x absolutely will 
not work with 4D. So when you install version 1.7 be sure to turn off “check 
for updates” otherwise your users will get nagged to update — and when they do 
you’ll get a call that PDF printing has stopped working. You have been warned.

My advice is if you don’t need any of the configuration options of PDF Creator, 
dump it and go with the Windows 10 PDF driver so there is nothing to install. 

Also be aware that PDFs created by the Windows 10 PDF driver are much larger 
than the exact same PDF created on macOS or with PDF Creator. macOS makes the 
smallest PDFs of all 3. So if size matters, avoid Windows 10 PDF driver.

One critical issue/bug with the Windows 10 PDF driver is that it will fail to 
work if there is a comma “,” anywhere in the file path — folder name or file 
name — of where to save the PDF. Verified, confirmed and a big PITA for many as 
can be seen on the web via Google search. Hope Microsoft will fix this someday.

Example: you have a folder with the name “Nevels, Tim” that contains documents 
for me. Impossible to use Windows 10 PDF driver to create a PDF inside this 
folder. The comma kills it. And yes, commas are totally valid characters in 
file names and folder names on Windows and macOS. 

The workaround I implemented was to check the file path and if there is a 
comma, create the PDF in a temp directory on the drive first. Once the PDF is 
created, use MOVE DOCUMENT to place it in the “Nevels, Tim” folder. MOVE 
DOCUMENT has no problem with comma’s in file paths.

As you can probably guess I’ve done way too much PDF creation work using all 3 
of these solutions. 

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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Tim Nevels via 4D_Tech
On Sep 12, 2018, at 2:00 PM, Koen Van Hooreweghe wrote:

> Sure it works. We use it with 4D v16 on Windows.
> 
> It is mentioned in the language reference: 
> http://doc.4d.com/4Dv16/4D/16.4/Integration-of-PDFCreator-driver-under-Windows.300-3978065.en.html
> But I think the example has a mistake. The second parameter of the SET PRINT 
> OPTION command should be 3 (=PDF) not 2.
> 
> I cannot test right away (I'm on Mac), but I saw in my code I put the command 
> with 2 in comment and I have this line with 3.

This is true. If you use PDF Creator you use the same setting as you do on 
macOS. But if you use the built in Windows 10 PDF driver you must use option 2. 

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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Peter Jakobsson via 4D_Tech
Many thanks for the replies.

I’ll attempt to go with the native PDF engine.

Regards

Peter

> On 12 Sep 2018, at 15:19, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I think it does run on windows 10

**
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
**

good job needs good doc

2018-09-12 Thread Arnaud de Montard via 4D_Tech
When I use 4dv16r6, I'd like the alt clic shortcut on a command to open the 
good version of doc. 
Of course not, it drives me nuts. 
Any idea? 
Where are documented the links we can use?

-- 
Arnaud de Montard 




**
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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Chuck Miller via 4D_Tech
I think it does run on windows 10

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 Sep 12, 2018, at 9:15 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Peter,
> Win10 has a native PDF print engine like MacOS does. You can use it.
> I don't think PDFCreator 1.7whatever will even run on Win10 (but you
> probably found that out).

**
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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Koen Van Hooreweghe via 4D_Tech
Hi Chuck,

Sure it works. We use it with 4D v16 on Windows.

It is mentioned in the language reference: 
http://doc.4d.com/4Dv16/4D/16.4/Integration-of-PDFCreator-driver-under-Windows.300-3978065.en.html
But I think the example has a mistake. The second parameter of the SET PRINT 
OPTION command should be 3 (=PDF) not 2.

I cannot test right away (I'm on Mac), but I saw in my code I put the command 
with 2 in comment and I have this line with 3.

Kind regards,
Koen

> Op 12 sep. 2018, om 16:03 heeft Charles Miller via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> Are you stating this now works on windows 10. that would be great.I will
> have to write code to test for OS on windows, so I can continue to use PD
> creator on older machines
> 




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
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
**

Re: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Charles Miller via 4D_Tech
Are you stating this now works on windows 10. that would be great.I will
have to write code to test for OS on windows, so I can continue to use PD
creator on older machines

Regards
Chuck

On Wed, Sep 12, 2018 at 9:27 AM Koen Van Hooreweghe via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Peter,
>
> IMHO 4D vs PDFCreator is end of life as recent versions of PDFCreator are
> not supported. We also switched to the native Windows 10 PDF driver.
> If you want to store your print documents directly to disk, you must set
> the path (as on macOS or with PDFCreator): SET PRINT OPTION(Destination
> option;3;$path)
>
> HTH
> Koen
>
> > Op 12 sep. 2018, om 13:06 heeft Peter Jakobsson via 4D_Tech <
> 4d_tech@lists.4d.com> het volgende geschreven:
> >
> > For years I used PDF creator to generate PDFs from 4D on Windows 7 -
> mainly because you didn’t have to type in a document title for every single
> page in a print run and this could be done from code. My customer has now
> upgraded to Windows 10 and it’s using the default PDF writer as I didn’t
> install creator. It works but it asks her to enter a title for each
> document instead of sending them all to disk directly.
> >
> > Is PDF Creator still the preferred option on Windows 10 ?
> >
> > Just wanted to see what people were using as their preferred choice.
> >
>
>
>
> 
> Compass bvba
> Koen Van Hooreweghe
> Kloosterstraat 65
> 9910 Knesselare
> 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
> **



-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server 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.
**
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: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Koen Van Hooreweghe via 4D_Tech
Hi Peter,

IMHO 4D vs PDFCreator is end of life as recent versions of PDFCreator are not 
supported. We also switched to the native Windows 10 PDF driver.
If you want to store your print documents directly to disk, you must set the 
path (as on macOS or with PDFCreator): SET PRINT OPTION(Destination 
option;3;$path)

HTH
Koen

> Op 12 sep. 2018, om 13:06 heeft Peter Jakobsson via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> For years I used PDF creator to generate PDFs from 4D on Windows 7 - mainly 
> because you didn’t have to type in a document title for every single page in 
> a print run and this could be done from code. My customer has now upgraded to 
> Windows 10 and it’s using the default PDF writer as I didn’t install creator. 
> It works but it asks her to enter a title for each document instead of 
> sending them all to disk directly.
> 
> Is PDF Creator still the preferred option on Windows 10 ?
> 
> Just wanted to see what people were using as their preferred choice.
> 




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
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
**

Re: PDF generation on Windows - Latest Thinking

2018-09-12 Thread Kirk Brooks via 4D_Tech
Peter,
Win10 has a native PDF print engine like MacOS does. You can use it.
I don't think PDFCreator 1.7whatever will even run on Win10 (but you
probably found that out).

On Wed, Sep 12, 2018 at 4:06 AM Peter Jakobsson via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi
>
> For years I used PDF creator to generate PDFs from 4D on Windows 7 -
> mainly because you didn’t have to type in a document title for every single
> page in a print run and this could be done from code. My customer has now
> upgraded to Windows 10 and it’s using the default PDF writer as I didn’t
> install creator. It works but it asks her to enter a title for each
> document instead of sending them all to disk directly.
>
> Is PDF Creator still the preferred option on Windows 10 ?
>
> Just wanted to see what people were using as their preferred choice.
>
> Many thanks in advance !
>
> Peter
>
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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
**

PDF generation on Windows - Latest Thinking

2018-09-12 Thread Peter Jakobsson via 4D_Tech
Hi

For years I used PDF creator to generate PDFs from 4D on Windows 7 - mainly 
because you didn’t have to type in a document title for every single page in a 
print run and this could be done from code. My customer has now upgraded to 
Windows 10 and it’s using the default PDF writer as I didn’t install creator. 
It works but it asks her to enter a title for each document instead of sending 
them all to disk directly.

Is PDF Creator still the preferred option on Windows 10 ?

Just wanted to see what people were using as their preferred choice.

Many thanks in advance !

Peter

**
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: 4Dv15 applications as a Service in Windows Server 2012

2018-09-12 Thread Ronnie Teo via 4D_Tech
Hi vance,

I have tried a test as per the KB note.  Results are similar as per previous 
tests…

Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work.
Running the same app with 4Dv15.5 (32bit) as a Windows service DOES work.

If I were to forgo the use of the 64-bit version of the v15.5 server, what do I 
lose?

Regards,
Ronnie

> On 11 Sep 2018, at 11:02 PM, Vance Villanueva  wrote:
> 
> Hi Ronnie,
>  
> Please take a look at this KB in regards to Windows Server 2012:
>  
> http://kb.4d.com/assetid=77139 
>  
> Regards,
>  
> Vance Villanueva
>  
> 
> 
>  
> Vance Villanueva
> Technical Services Engineer
> Telephone :   +1-408-557-4600
> Email :   vvillanu...@4d.com 
> Web : www.4D.com  
> 4D inc
> 95 S. Market Street, Suite #240
> CA 95113 San Jose - United States
> Standard :+1-408-557-4600
> Fax : +1-408-271-5080
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> From: Ronnie Teo [mailto:ron...@tarawerkz.com] 
> Sent: Tuesday, September 11, 2018 12:30 AM
> To: Vance Villanueva
> Cc: 4D iNug Technical
> Subject: Re: 4Dv15 applications as a Service in Windows Server 2012
>  
> Hi Vance,
>  
> Yes, I have done that more than a few times.
>  
> Regards,
> Ronnie
> Tarawerkz
> 
> 
> On 11 Sep 2018, at 2:53 AM, Vance Villanueva  > wrote:
>  
> Hi Ronnie,
> 
> Have you tried unregistering the service and re-registering it?
> 
> http://kb.4d.com/assetid=2 
> 
> 
> Regards,
> 
> Vance Villanueva
> 
> 
> 
> Vance Villanueva
> Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> CA 95113 San Jose
> United States
> 
> Téléphone : +1-408-557-4600
> Standard :  +1-408-557-4600
> Fax :   +1-408-271-5080
> Email : vvillanu...@4d.com 
> Web :   www.4D.com 
> 
> 
> 
> 
> 
> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com 
> ] On Behalf Of Ronnie Teo via 4D_Tech
> Sent: Sunday, September 09, 2018 9:21 PM
> To: Jim Hays
> Cc: Ronnie Teo; 4D iNug Technical
> Subject: Re: 4Dv15 applications as a Service in Windows Server 2012
> 
> Hi Jim & Paul,
> 
> This is my finding after testing over the weekend with Windows Server 2012 
> and 4Dv15.5.
> 
> Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work.
> Running the same app with 4Dv15.5 (32bit) as a Windows DOES work.
> 
> In the latter scenario, the database name appears in the Available tab on the 
> client software and we are able to log in and use the app as per normal.
> 
> I do not understand why it does not work with the 64-bit version.
> But my next question would be, what do we give up by not using the 64-bit 
> version of 4Dv15.5?
> 
> Regards,
> Ronnie
> 
> 
> On 7 Sep 2018, at 7:59 PM, Jim Hays  > wrote:
> 
> Just to be clear, these are our steps.  It may or may not be helpful in your 
> case.
> 
> When we set up a built 4D server, we usually are logged in to the machine 
> with an Administrator level account.
> Then we launch our built EXE by running As Administrator.  (I think we have 
> to do this).
> Once it is launched, we register the service using the 4D menu item.
> 
> On two Win 2012 servers, we had to change the login account for the service 
> to a different user.
> We were told that the "localsystem" account does not normally support network 
> services.
> In most cases we just leave it as localsystem and it works fine.
> 
> 
> Separately, Paul may be on the right track.  Maybe the service launches, but 
> 4D is stopped when looking for the 4DC, or the data file, or something else 
> on startup.
> 
> Consider looking at the 4D Folder where the Plugins are cached.  It is 
> different (I think) when running as a service or running double-clicked.  At 
> least we always see the that cache being rebuilt if we connect from a 4D 
> remote first one way, then the other.
> Maybe 4D can't write to the 4D folder location when running as a service.
> 
> Jim
> 
> 
> 
> On Thu, Sep 6, 2018 at 11:32 PM Ronnie Teo   >> wrote:
> Hi Jim,
> 
> I’m testing both under the same account.
> Double-clicking works while running under Service does not.
> 
> FWIW, under the same account, running under service and direct app works for 
> v13 apps.
> 
> 
> Regards,
> Ronnie
> 
> 
> On 7 Sep 2018, at 3:00 AM, 4d_tech-requ...@lists.4d.com 
>   > wrote:
> 
> From: Jim Hays mailto:jgha...@gmail.com> 
> >>
> To: 4D iNug Technical <4d_tech@lists.4d.com  
>