Re: FYI: [v17.3] - Create Folder (hierarchy) findings
Ran into something similar recently. Where = disk : Users: Databases : Specific Database folder : specific database : Resources : New Folder (spacing for readability) v15 -- Create folder(;*) did not create 'New Folder' there was an On Err Call routine running - it was NOT invoked. turned it off, tried again. No New Folder, no error. Removed the "*" - folder created. If I get a chance I will look into it more. > G’day, > > If the following has been mentioned before - sorry for the noise. > > Tested/confirmed on Mac macOS 10.13.6 interpreted > > $MyFolderHierarchy:=“MyRoot" > Create Folder ($MyFolderHierarchy) > > creates the folder “MyRoot” at the same level as the structure file > > > > $MyFolderHierarchy:=“MyRoot" > Create Folder ($MyFolderHierarchy;*) > > does NOTHING > > > > $MyFolderHierarchy:="MyRoot”+Folder separator+"Level1"+Folder > separator+"Level2"+Folder separator+"Level3"+Folder separator > Create Folder ($MyFolderHierarchy;*) > > throws errors: > > Error when executing the method "_001_Test" at line number 26 > > The file is locked or the pathname is not correct. (File: > MyRoot:Level1:Level2:Level3:) > > Error code: -45 (4DRT) > The file is locked or the pathname is not correct. (File: > MyRoot:Level1:Level2:Level3:) > component: '4DRT' > task -5, name: 'P_8' > > Error code: 652 (xbox) > Cannot create folder MyRoot:. > xtoolbox > task -5, name: 'P_8' > > Error code: 13 (POSX) > Permission denied > component: 'POSX' > task -5, name: ‘P_8' > > > > $SourcePath:=Get 4D folder(Database folder)//!! > > $MyFolderHierarchy:=$SourcePath+"MyRoot”+Folder > separator+"Level1"+Folder separator+"Level2"+Folder > separator+"Level3"+Folder separator > > Create Folder ($MyFolderHierarchy;*) > > Will have the wanted effect ―> new folder hierarchy starting at the > structure level. > > > Conclusion: It might be a good idea to use an absolute path at all times. > > My 2¢ > > HTH > > Cheers > ** > 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 > ** Hell is other people Jean-Paul Sartre ** 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 **
FYI: [v17.3] - Create Folder (hierarchy) findings
G’day, If the following has been mentioned before - sorry for the noise. Tested/confirmed on Mac macOS 10.13.6 interpreted $MyFolderHierarchy:=“MyRoot" Create Folder ($MyFolderHierarchy) creates the folder “MyRoot” at the same level as the structure file $MyFolderHierarchy:=“MyRoot" Create Folder ($MyFolderHierarchy;*) does NOTHING $MyFolderHierarchy:="MyRoot”+Folder separator+"Level1"+Folder separator+"Level2"+Folder separator+"Level3"+Folder separator Create Folder ($MyFolderHierarchy;*) throws errors: Error when executing the method "_001_Test" at line number 26 The file is locked or the pathname is not correct. (File: MyRoot:Level1:Level2:Level3:) Error code: -45 (4DRT) The file is locked or the pathname is not correct. (File: MyRoot:Level1:Level2:Level3:) component: '4DRT' task -5, name: 'P_8' Error code: 652 (xbox) Cannot create folder MyRoot:. xtoolbox task -5, name: 'P_8' Error code: 13 (POSX) Permission denied component: 'POSX' task -5, name: ‘P_8' $SourcePath:=Get 4D folder(Database folder)//!! $MyFolderHierarchy:=$SourcePath+"MyRoot”+Folder separator+"Level1"+Folder separator+"Level2"+Folder separator+"Level3"+Folder separator Create Folder ($MyFolderHierarchy;*) Will have the wanted effect —> new folder hierarchy starting at the structure level. Conclusion: It might be a good idea to use an absolute path at all times. My 2¢ HTH Cheers ** 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 **
WR PRINT with "Microsoft Print To PDF"
Hi, Has anyone encountered the issue with pdf generation on Windows Server 2016? Issue: "WR PRINT" opens up a dialog to save a pdf instead of the generation of PDF silently. OS: Windows Server 2016 4D v15 R2 4D Running as a service Printer: " Microsoft Print To PDF" The same logic/code works for Windows Server 2012 and PDFCreator173 Thanks Denis -- This is an email from Ezidebit Pty Ltd. The email and any attachments may be confidential, legally privileged and/or subject to copyright. If you are not the intended recipient, you must not disclose or use the information contained in this e-mail. If you have received this email in error, please notify us immediately and delete the email and all copies. We do not guarantee that this email and any attachments are free from virus or other errors. We will not be responsible for loss or damage resulting (either directly or indirectly) from any such virus or error. We will only be responsible for a change to a document if we made the change. The content of and opinions expressed in non-business emails are not that of Ezidebit Pty Ltd and are that of the sender. ** 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 **