Mac Monterey O$ 10.1 PDF not creating
Nigel Hughes
nigel at rnamh.co.uk
Mon May 23 07:42:10 UTC 2022
Sue
Could the pathname be wrong.
The difference between posix and hfs.
I check what the macOS expects and set the pathname accordingly.
Regards
Nigel
> On 23 May 2022, at 02:42, Sue Leaver <sue at leaver.co.nz> wrote:
>
> A client upgraded their Mac to Monterey and are running Studio 10.1 - I see
> they should be using 10.2 but that isn't an option at the moment. The
> program uses the code below to print an invoice to a PDF. When they upgraded
> to Monterey it stopped creating the PDF. Same thing with a text file created
> elsewhere in the program, file stopped creating. I don't have a Mac to try
> things on. Hoping someone can tell me how to get this working again.
>
>
>
> Sue
>
>
>
> Calculate HTML_FILE_NAME as con(SYSTEM_PDF_LOCATION,'Inv',ENTRY_CODE)
>
> Do ivoP.$setAttachmentDevice(HTML_FILE_NAME,kTrue,kTrue) ## true means
> delete any preexisting file of the same name
>
> Do $cdevice.$assign(kDevOmnisPDF) ## set which device to print to
>
> Do $prefs.$reportfile.$assign(HTML_FILE_NAME)
>
> Set report name Dr_Invoices
>
> Calculate ENTRY_SEQ_COPY1 as ENTRY_SEQ
>
> Set search as calculation (ENTRY_SEQ=ENTRY_SEQ_COPY1)¬(ITEM_CONTROL)
>
> Print report (Use search)
>
> #Wait for file to be created
>
> Repeat
>
> Do FileOps.$doesfileexist(HTML_FILE_NAME) Returns #8
>
> Calculate iNum as sleep(100)
>
> Until #8=kTrue
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list