Re: Problems with Microsoft Print to PDF

2019-04-02 Thread Charles Miller via 4D_Tech
I think the problems with odd creator o. Windows had to do with 4D as when
I went to 17.1 it started working again.
When using earlier 4D releases no pdf was created own windows at all

Hope this helps


Regards

  Chuck

On Tue, Apr 2, 2019 at 9:09 PM Keith Goebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Koen, thanks for your reply.
> While it is comforting to know I’m not the only one in the 4D world having
> this problem, it is amazing that we are the only two :-)
> I guess we’ll have to look at the pdf plugins available for 4D v17.
>
> 4D PDF Printer Plugin ?
> I’m under the impression that the only 4D PDF plugin that can be “dropped”
> into an existing db and will allow you to set it as the “current” printer
> when printing a 4D report is 4D PDF Printer Plugin from eNode.
> If anyone knows that I have got that wrong, please speak up…
>
> Just FYI, and for the archives...
> We were using PDFCreator but started encountering problems when using it
> on Win10 and upwards computers - that was what made us switch to Microsoft
> Print to PDF.
>
> A Google search shows that others (using other applications) have also run
> up against this occasional “bad” pdf file generation with Microsoft Print
> to PDF. I saw no solutions offered.
> Cheers, Keith
>
>
> > On 2/04/2019, at 8:40 pm, Koen Van Hooreweghe 
> wrote:
> > …
> > Just to confirm I've seen issues with PDF's generated from 4D v17R3
> using MS PDF driver. This is happening on my Citrix account at a customers
> site. Acrobat Reader says the document contains an error and cannot be
> displayed correctly...
> >
> >> Op 1 apr. 2019, om 05:10 heeft Keith Goebel via 4D_Tech <
> 4d_tech@lists.4d.com > het volgende
> geschreven:
> >>
> >> Has anyone else encountered this problem and, if so, have you managed
> to determine what is causing the “bad” pdfs?
>
> **
> 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: Problems with Microsoft Print to PDF

2019-04-02 Thread Keith Goebel via 4D_Tech
Koen, thanks for your reply.
While it is comforting to know I’m not the only one in the 4D world having this 
problem, it is amazing that we are the only two :-)
I guess we’ll have to look at the pdf plugins available for 4D v17.

4D PDF Printer Plugin ?
I’m under the impression that the only 4D PDF plugin that can be “dropped” into 
an existing db and will allow you to set it as the “current” printer when 
printing a 4D report is 4D PDF Printer Plugin from eNode.
If anyone knows that I have got that wrong, please speak up…

Just FYI, and for the archives...
We were using PDFCreator but started encountering problems when using it on 
Win10 and upwards computers - that was what made us switch to Microsoft Print 
to PDF.

A Google search shows that others (using other applications) have also run up 
against this occasional “bad” pdf file generation with Microsoft Print to PDF. 
I saw no solutions offered.
Cheers, Keith


> On 2/04/2019, at 8:40 pm, Koen Van Hooreweghe  wrote:
> …
> Just to confirm I've seen issues with PDF's generated from 4D v17R3 using MS 
> PDF driver. This is happening on my Citrix account at a customers site. 
> Acrobat Reader says the document contains an error and cannot be displayed 
> correctly...
> 
>> Op 1 apr. 2019, om 05:10 heeft Keith Goebel via 4D_Tech 
>> <4d_tech@lists.4d.com > het volgende geschreven:
>> 
>> Has anyone else encountered this problem and, if so, have you managed to 
>> determine what is causing the “bad” pdfs?

**
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: Transparency (Object property vs RGB color "Background color none")

2019-04-02 Thread cjmiller--- via 4D_Tech
If you have no background. Transparent is checked there is nothing for command 
to color

Regards 
Chuck 

Sent from my iPhone

> On Apr 2, 2019, at 6:18 PM, Jeremy French via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> What is the difference between
> 
> RGB Color constant "Background color none"
> Object Property "Transparent" checkbox
> 
> =
> Transparent unchecked
> =
> 
> If the object property "Transparent" is unchecked, then
> 
> OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color none)
> 
> makes the object's background appear transparent.
> 
> And subsequently calling:
> 
> OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color)
> 
> restores the object's background color to white.
> 
> =
> Transparent Check-marked
> =
> 
> If the object property "Transparent" is check-marked, then the object's 
> background appears transparent.
> 
> Calling 
> 
> OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color)
> 
> appears to have no effect: the object's background **remains** Transparent.
> 
> =
> Question
> =
> 
> What is the difference between the object property "Transparent" and the RGB 
> Color constant "Background color none"?
> 
> In particular, why doesn't
> 
> OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color)
> 
> have the effect of unchecking the "Transparent" property?
> 
> **
> 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: Code signing works on one app but fails on another

2019-04-02 Thread Pat Bensky via 4D_Tech
Hi Jody,
Yes, I thought that might be an issue so I made sure that the pathname had
no spaces, to test it - IE:

/Users/patbensky/Desktop/catbase/CatBasev8b105.4DB

I still get the "No such file or directory" error when I try to run the
code sign code, but it I run simple code to open the file ie:

open /Users/patbensky/Desktop/catbase/CatBasev8b105.4DB

it works OK - it opens the database and asks for a data file, which is what
I'd expect.

So I don't think it is a problem with the pathaname ):

Pat

On Tue, 2 Apr 2019 at 23:15, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Pat:
>
> The error No such file or directory, is an error saying that the paths you
> are giving Terminal are incorrect. One thing that can cause this is if the
> file name, or the directory path has spaces in the names. Though the OS can
> handle spaces terminal cannot. You need to put an escape character in front
> of the space (back slash or forward slash not sure at the moment).
>
> Jody
>
> > On Apr 2, 2019, at 3:47 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Hi Jeremy,
> > I've tried different hyphens ...
> > --force --deep
> > I get:
> >
> > ID: No such file or directory
> >
> > -force -deep
> > I get:
> >
> > invalid argument "rce"
> >
> > ?
> >
> >
> > On Tue, 2 Apr 2019 at 19:56, Jeremy Roussak via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> Pat, what’s the character before “force”? In your email, it seems to be
> an
> >> em-dash. I suspect it should be a double-hyphen. The same will apply to
> the
> >> character before “deep”.
> >>
> >> Jeremy
> >>
> >>> On 2 Apr 2019, at 19:05, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
> >> wrote:
> >>>
> >>> Hi Jody,
> >>> Thanks very much for this.
> >>> I've tried running doing as you suggested in Terminal but I always get:
> >>>
> >>> Developer: found in both
> >>> /Users/patbensky/Library/Keychains/login.keychain-db and
> >>> /Library/Keychains/System.keychain (this is all right)
> >>>
> >>> —force: No such file or directory
> >>>
> >>> The pathname for the file is definitely correct - if I run
> >>> open /mypathname/
> >>>
> >>> it opens the database.
> >>>
> >>> Any ideas?
> >>>
> >>> Thanks!
> >>>
> >>> Pat
> >>>
> >>> On Thu, 21 Mar 2019 at 14:17, Jody Bevan via 4D_Tech <
> >> 4d_tech@lists.4d.com>
> >>> wrote:
> >>>
>  Pat:
> 
>  I struggled with this for a few months. A bunch of research, help from
> >> the
>  nug, and help from 4D Tech support, I think I found our problem. We
> will
>  use a graphic application to create some graphics (icons / pictures
> >> etc).
>  As is usual, Apple is getting more strict with each version of the OS
> >> for
>  signing. They are permitting less ‘noise’ in the files.
> 
>  Make of copy of your .4dbase to work with that is uncompiled. The goal
> >> is
>  to make a clean development version that you can use from now on that
> >> will
>  sign with 4D’s build tool.
> 
>  In Terminal issue the following:
> 
>  Pats-Mac-Pro: ~ pat$ codesign —force —deep -s “Developer ID
> Application:
>  Pat (yourIDHere)” -f /PathTo/Your.4dbase/
> 
>  This command goes through all the files in the .dbase directory and
> >> clears
>  out things like finder  attributes that are not permitted. If this
> does
> >> the
>  trick you will see that the the application has been signed. If this
> >> works,
>  make this your new development version. Subject to adding any new
> files
>  into the .4dbase it should compile, build and sign using the 4D tool.
> 
>  Jody
> 
> > On Mar 21, 2019, at 5:52 AM, Pat Bensky via 4D_Tech <
>  4d_tech@lists.4d.com> wrote:
> >
> > Using v17
> > I've added our Apple OSX signing certificate to a client's app built
> >> with
> > 4D v17. It compiles and runs just fine.
> > I've added the same certificate to another app, using the same
> version
> >> of
> > 4D and the same compiler settings. However with this one, at the end
> of
> > compilation, I get the message "Code signature failed".
> > Any suggestions as to why it would work for one app but not for
> >> another?
>  As
> > far as I can see, the settings are identical.
> >
> > Pat
> >
> 
>  **
>  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
>  **
> >>>
> >>>
> >>>
> >>> --
> >>> *
> >>> CatBase - Top Dog in Data Publishing
> >>> tel: +44 (0) 207 118 7889
> >>> w: http://www.catbase.com
> >>> skype: pat.bensky
> >>> *
> >>> 

Transparency (Object property vs RGB color "Background color none")

2019-04-02 Thread Jeremy French via 4D_Tech
What is the difference between

RGB Color constant "Background color none"
Object Property "Transparent" checkbox

=
Transparent unchecked
=

If the object property "Transparent" is unchecked, then

OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color none)

makes the object's background appear transparent.

And subsequently calling:

OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color)

restores the object's background color to white.

=
Transparent Check-marked
=

If the object property "Transparent" is check-marked, then the object's 
background appears transparent.

Calling 

OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color)

appears to have no effect: the object's background **remains** Transparent.

=
Question
=

What is the difference between the object property "Transparent" and the RGB 
Color constant "Background color none"?

In particular, why doesn't

OBJECT SET RGB COLOR(*;$object_name_t;Foreground color;Background color)

have the effect of unchecking the "Transparent" property?

**
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: Code signing works on one app but fails on another

2019-04-02 Thread Jody Bevan via 4D_Tech
Pat:

The error No such file or directory, is an error saying that the paths you are 
giving Terminal are incorrect. One thing that can cause this is if the file 
name, or the directory path has spaces in the names. Though the OS can handle 
spaces terminal cannot. You need to put an escape character in front of the 
space (back slash or forward slash not sure at the moment).

Jody

> On Apr 2, 2019, at 3:47 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Jeremy,
> I've tried different hyphens ...
> --force --deep
> I get:
> 
> ID: No such file or directory
> 
> -force -deep
> I get:
> 
> invalid argument "rce"
> 
> ?
> 
> 
> On Tue, 2 Apr 2019 at 19:56, Jeremy Roussak via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Pat, what’s the character before “force”? In your email, it seems to be an
>> em-dash. I suspect it should be a double-hyphen. The same will apply to the
>> character before “deep”.
>> 
>> Jeremy
>> 
>>> On 2 Apr 2019, at 19:05, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
>> wrote:
>>> 
>>> Hi Jody,
>>> Thanks very much for this.
>>> I've tried running doing as you suggested in Terminal but I always get:
>>> 
>>> Developer: found in both
>>> /Users/patbensky/Library/Keychains/login.keychain-db and
>>> /Library/Keychains/System.keychain (this is all right)
>>> 
>>> —force: No such file or directory
>>> 
>>> The pathname for the file is definitely correct - if I run
>>> open /mypathname/
>>> 
>>> it opens the database.
>>> 
>>> Any ideas?
>>> 
>>> Thanks!
>>> 
>>> Pat
>>> 
>>> On Thu, 21 Mar 2019 at 14:17, Jody Bevan via 4D_Tech <
>> 4d_tech@lists.4d.com>
>>> wrote:
>>> 
 Pat:
 
 I struggled with this for a few months. A bunch of research, help from
>> the
 nug, and help from 4D Tech support, I think I found our problem. We will
 use a graphic application to create some graphics (icons / pictures
>> etc).
 As is usual, Apple is getting more strict with each version of the OS
>> for
 signing. They are permitting less ‘noise’ in the files.
 
 Make of copy of your .4dbase to work with that is uncompiled. The goal
>> is
 to make a clean development version that you can use from now on that
>> will
 sign with 4D’s build tool.
 
 In Terminal issue the following:
 
 Pats-Mac-Pro: ~ pat$ codesign —force —deep -s “Developer ID Application:
 Pat (yourIDHere)” -f /PathTo/Your.4dbase/
 
 This command goes through all the files in the .dbase directory and
>> clears
 out things like finder  attributes that are not permitted. If this does
>> the
 trick you will see that the the application has been signed. If this
>> works,
 make this your new development version. Subject to adding any new files
 into the .4dbase it should compile, build and sign using the 4D tool.
 
 Jody
 
> On Mar 21, 2019, at 5:52 AM, Pat Bensky via 4D_Tech <
 4d_tech@lists.4d.com> wrote:
> 
> Using v17
> I've added our Apple OSX signing certificate to a client's app built
>> with
> 4D v17. It compiles and runs just fine.
> I've added the same certificate to another app, using the same version
>> of
> 4D and the same compiler settings. However with this one, at the end of
> compilation, I get the message "Code signature failed".
> Any suggestions as to why it would work for one app but not for
>> another?
 As
> far as I can see, the settings are identical.
> 
> Pat
> 
 
 **
 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
 **
>>> 
>>> 
>>> 
>>> --
>>> *
>>> CatBase - Top Dog in Data Publishing
>>> tel: +44 (0) 207 118 7889
>>> w: http://www.catbase.com
>>> skype: pat.bensky
>>> *
>>> **
>>> 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
>> **
> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> 

Re: Code signing works on one app but fails on another

2019-04-02 Thread Pat Bensky via 4D_Tech
Hi Jeremy,
I've tried different hyphens ...
--force --deep
I get:

ID: No such file or directory

-force -deep
I get:

invalid argument "rce"

?


On Tue, 2 Apr 2019 at 19:56, Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Pat, what’s the character before “force”? In your email, it seems to be an
> em-dash. I suspect it should be a double-hyphen. The same will apply to the
> character before “deep”.
>
> Jeremy
>
> > On 2 Apr 2019, at 19:05, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> >
> > Hi Jody,
> > Thanks very much for this.
> > I've tried running doing as you suggested in Terminal but I always get:
> >
> > Developer: found in both
> > /Users/patbensky/Library/Keychains/login.keychain-db and
> > /Library/Keychains/System.keychain (this is all right)
> >
> > —force: No such file or directory
> >
> > The pathname for the file is definitely correct - if I run
> > open /mypathname/
> >
> > it opens the database.
> >
> > Any ideas?
> >
> > Thanks!
> >
> > Pat
> >
> > On Thu, 21 Mar 2019 at 14:17, Jody Bevan via 4D_Tech <
> 4d_tech@lists.4d.com>
> > wrote:
> >
> >> Pat:
> >>
> >> I struggled with this for a few months. A bunch of research, help from
> the
> >> nug, and help from 4D Tech support, I think I found our problem. We will
> >> use a graphic application to create some graphics (icons / pictures
> etc).
> >> As is usual, Apple is getting more strict with each version of the OS
> for
> >> signing. They are permitting less ‘noise’ in the files.
> >>
> >> Make of copy of your .4dbase to work with that is uncompiled. The goal
> is
> >> to make a clean development version that you can use from now on that
> will
> >> sign with 4D’s build tool.
> >>
> >> In Terminal issue the following:
> >>
> >> Pats-Mac-Pro: ~ pat$ codesign —force —deep -s “Developer ID Application:
> >> Pat (yourIDHere)” -f /PathTo/Your.4dbase/
> >>
> >> This command goes through all the files in the .dbase directory and
> clears
> >> out things like finder  attributes that are not permitted. If this does
> the
> >> trick you will see that the the application has been signed. If this
> works,
> >> make this your new development version. Subject to adding any new files
> >> into the .4dbase it should compile, build and sign using the 4D tool.
> >>
> >> Jody
> >>
> >>> On Mar 21, 2019, at 5:52 AM, Pat Bensky via 4D_Tech <
> >> 4d_tech@lists.4d.com> wrote:
> >>>
> >>> Using v17
> >>> I've added our Apple OSX signing certificate to a client's app built
> with
> >>> 4D v17. It compiles and runs just fine.
> >>> I've added the same certificate to another app, using the same version
> of
> >>> 4D and the same compiler settings. However with this one, at the end of
> >>> compilation, I get the message "Code signature failed".
> >>> Any suggestions as to why it would work for one app but not for
> another?
> >> As
> >>> far as I can see, the settings are identical.
> >>>
> >>> Pat
> >>>
> >>
> >> **
> >> 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
> >> **
> >
> >
> >
> > --
> > *
> > CatBase - Top Dog in Data Publishing
> > tel: +44 (0) 207 118 7889
> > w: http://www.catbase.com
> > skype: pat.bensky
> > *
> > **
> > 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
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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: Backup and journal file configurations

2019-04-02 Thread Jim Hays via 4D_Tech
Sorry I have been silent for a week - tied up with other things.

One reason for not keeping backups and logs operating in our dev
environment is that we often run databases in single user mode, and there
is no automated backup.  If you do a lot of operations on the data, the
journal just keeps growing.  I suppose we could put some code in for this
scenario, to always run a backup when it is shut down, and only keep 1
backup.

I've found that when we take a copy of a .4DD from a customer, and put it
on our dev server for testing purposes, the server will ask for the journal
at startup.
So the data file knows a journal is in use.

At that point, we need to disable the journal and backup settings.
If we don't, and then run our automated build and testing system, we run
into trouble.
Just moving the 4DB file over to the "build" folder, brings along the
requirement for a log file, even though the data file used for the build
had everything turned off before.
The automated build is interrupted by the UI looking for a journal file -
you must pick existing, create, or cancel.
So the structure file also knows a journal is in use.

But there are no controls I know to turn it off programmatically, or by
some xml setting.

There are also issues if we try to keep all the backup and journal files
all the time.
The backup.xml goes with the data.  Each time we get a data file we need to
get the backup.xml as well, and place it in Preferences\Backup next to our
structure.
The backup.xml has a different data file name in it - so in essence, there
is data information in the 4DB structure folder.

It's quite likely I'm missing something in all this.
Maybe a good solution for us will be to just triage any data file that
comes in before we allow it into the "automated" cycle - whether for
development or testing.

Thanks for listening!

Jim





On Mon, Mar 25, 2019 at 8:42 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
wrote:

>
> > On Mar 25, 2019, at 5:11 PM, Tim Nevels via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > When you are moving data files around between systems, just copy the
> entire data file folder. That will have the .4DD, .4DIndx, .Match and
> .journal files. If they are all in the same folder you can open that data
> file with another structure and it will not ask you for the location of the
> .journal. The key is to have all these files in the same folder and to
> always move the entire folder between machines.
>
> Having the .journal file next to the database file defeats the main
> benefit of having the journal. If the drive crashes, you could could
> recreate the database from the last backup and the journal file (assuming
> both are on another drive).
>
> > Now if you copy that datafile folder back to your development machine,
> you have to copy the .journal file too. I believe .journal file usage is
> internally stored in a .4DD, so once you have it set up, they must stay
> together, or you get the messages you are talking about.
>
> If your log file is on a second volume in production and your development
> machine has only one drive, there is no way to automate the restore of the
> backup without the log file prompts. I also wanted a fully automated
> restore with no log file or prompts to allow users to test experimental
> features. This is possible in every database I'm aware of, except for 4D.
>
> See feature request from Jeff Kain and other discussion here:
>
> https://forums.4d.com/Post/EN/22296877/1/22296878
>
>
> John DeSoi, Ph.D.
>
> **
> 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: Code signing works on one app but fails on another

2019-04-02 Thread Jeremy Roussak via 4D_Tech
Pat, what’s the character before “force”? In your email, it seems to be an 
em-dash. I suspect it should be a double-hyphen. The same will apply to the 
character before “deep”.

Jeremy

> On 2 Apr 2019, at 19:05, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Hi Jody,
> Thanks very much for this.
> I've tried running doing as you suggested in Terminal but I always get:
> 
> Developer: found in both
> /Users/patbensky/Library/Keychains/login.keychain-db and
> /Library/Keychains/System.keychain (this is all right)
> 
> —force: No such file or directory
> 
> The pathname for the file is definitely correct - if I run
> open /mypathname/
> 
> it opens the database.
> 
> Any ideas?
> 
> Thanks!
> 
> Pat
> 
> On Thu, 21 Mar 2019 at 14:17, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>> Pat:
>> 
>> I struggled with this for a few months. A bunch of research, help from the
>> nug, and help from 4D Tech support, I think I found our problem. We will
>> use a graphic application to create some graphics (icons / pictures etc).
>> As is usual, Apple is getting more strict with each version of the OS for
>> signing. They are permitting less ‘noise’ in the files.
>> 
>> Make of copy of your .4dbase to work with that is uncompiled. The goal is
>> to make a clean development version that you can use from now on that will
>> sign with 4D’s build tool.
>> 
>> In Terminal issue the following:
>> 
>> Pats-Mac-Pro: ~ pat$ codesign —force —deep -s “Developer ID Application:
>> Pat (yourIDHere)” -f /PathTo/Your.4dbase/
>> 
>> This command goes through all the files in the .dbase directory and clears
>> out things like finder  attributes that are not permitted. If this does the
>> trick you will see that the the application has been signed. If this works,
>> make this your new development version. Subject to adding any new files
>> into the .4dbase it should compile, build and sign using the 4D tool.
>> 
>> Jody
>> 
>>> On Mar 21, 2019, at 5:52 AM, Pat Bensky via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>> 
>>> Using v17
>>> I've added our Apple OSX signing certificate to a client's app built with
>>> 4D v17. It compiles and runs just fine.
>>> I've added the same certificate to another app, using the same version of
>>> 4D and the same compiler settings. However with this one, at the end of
>>> compilation, I get the message "Code signature failed".
>>> Any suggestions as to why it would work for one app but not for another?
>> As
>>> far as I can see, the settings are identical.
>>> 
>>> Pat
>>> 
>> 
>> **
>> 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
>> **
> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 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: Code signing works on one app but fails on another

2019-04-02 Thread Pat Bensky via 4D_Tech
Hi Jody,
Thanks very much for this.
I've tried running doing as you suggested in Terminal but I always get:

Developer: found in both
/Users/patbensky/Library/Keychains/login.keychain-db and
/Library/Keychains/System.keychain (this is all right)

—force: No such file or directory

The pathname for the file is definitely correct - if I run
open /mypathname/

it opens the database.

Any ideas?

Thanks!

Pat

On Thu, 21 Mar 2019 at 14:17, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Pat:
>
> I struggled with this for a few months. A bunch of research, help from the
> nug, and help from 4D Tech support, I think I found our problem. We will
> use a graphic application to create some graphics (icons / pictures etc).
> As is usual, Apple is getting more strict with each version of the OS for
> signing. They are permitting less ‘noise’ in the files.
>
> Make of copy of your .4dbase to work with that is uncompiled. The goal is
> to make a clean development version that you can use from now on that will
> sign with 4D’s build tool.
>
> In Terminal issue the following:
>
> Pats-Mac-Pro: ~ pat$ codesign —force —deep -s “Developer ID Application:
> Pat (yourIDHere)” -f /PathTo/Your.4dbase/
>
> This command goes through all the files in the .dbase directory and clears
> out things like finder  attributes that are not permitted. If this does the
> trick you will see that the the application has been signed. If this works,
> make this your new development version. Subject to adding any new files
> into the .4dbase it should compile, build and sign using the 4D tool.
>
> Jody
>
> > On Mar 21, 2019, at 5:52 AM, Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Using v17
> > I've added our Apple OSX signing certificate to a client's app built with
> > 4D v17. It compiles and runs just fine.
> > I've added the same certificate to another app, using the same version of
> > 4D and the same compiler settings. However with this one, at the end of
> > compilation, I get the message "Code signature failed".
> > Any suggestions as to why it would work for one app but not for another?
> As
> > far as I can see, the settings are identical.
> >
> > Pat
> >
>
> **
> 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
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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
**

Best way to detect pasting a picture in 4D Write Pro

2019-04-02 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all,

Does anybody know what is the best way to detect pasting a picture in 4D Write 
Pro?

I understand I can do it with some form event type, but I think I have to run 
this code every time something is pasted into the Write Pro Area, so also when 
pasting text for example

Gr,
Piotr

**
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: Securing sensitive data in a 4D data file

2019-04-02 Thread Bruno LEGAY via 4D_Tech
Hi,

Instead of keychain, which is a good idea but maybe problematic for cross 
platform and backing-up / restoring. Don't get me wrong, I like and I trust 
apple iCloud backups but maybe not a good option for your situation.

There is the PKCS12 file format which is made to store private keys (a 
keystore)... The file is a secure (encrypted) key store which can be opened 
with a password.

This way, each user has a keystore password (random generated) and a pkcs12 
file in a blob, the keystone password is encrypted with a master password (or 
using a custom user password).
The keystore contains the private key. The public key can always be generated 
from a private key.
You will have to be sure that the system works when user changes his main 
password, etc..

openssl can manage PKCS12.

Contact me if you need some help on this (I have done a lot of openssl stuff 
with 4D components).

HTH
Bruno LEGAY
A Consulting



**
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: Problems with Microsoft Print to PDF

2019-04-02 Thread Koen Van Hooreweghe via 4D_Tech
Hi Keith,

Just to confirm I've seen issues with PDF's generated from 4D v17R3 using MS 
PDF driver. This is happening on my Citrix account at a customers site. Acrobat 
Reader says the document contains an error and cannot be displayed correctly. 
If I open it on my Mac using Preview, no problem. But Acrobat Reader DC Mac 
shows the same error message.
The document opens, but only a small part of the 3 page document is displayed. 
Just he header parts are displayed and on page 2 and 3 even some texts of the 
header are missing.

I haven't investigated further yet because I did not get complaints of other 
users. But IIRC this problem I'm seeing started after upgrading from v16 (32bit 
clients) to v17 (using R3 64 bit). Could not reproduce it in my development 
environment.

Kind regards,
Koen

> Op 1 apr. 2019, om 05:10 heeft Keith Goebel via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> Has anyone else encountered this problem and, if so, have you managed to 
> determine what is causing the “bad” pdfs?




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