Mac Monterey O$ 10.1 PDF not creating

Das Goravani goravanis at gmail.com
Mon May 23 15:03:42 UTC 2022


Sue,

Someone posted recently that macOS Monterey latest version caused PDF’s to stop working. 

There are two ways to make PDF’s, I forget the syntax at the moment, but only one of them stopped working.

The other method still works. You may have to locate the syntax for these two and switch.

The posting was really recent, only within the last month or two. 

Good luck,

Das Goravani



> On May 22, 2022, at 9:42 PM, 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)&not(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