Page 1 of 1

DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Fri Jan 21, 2022 2:31 pm
by Diego Euri Almanzar
Dear Sirs,

I have been able to successfully convert the resulting spool from DCPRINT to Microsoft Print to PDF on Windows 10 32 bit. But if I use Windows 10 at 64 bit, it results in an encrypted pdf, or unreadable. What can I do so that the sentence is readable, also at 64 bit?

DCPRINT ON TO Printer NAME 'Microsoft Print to PDF' TO FILE OUTFILE (spool pdfdoc)

Re: DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Fri Jan 21, 2022 2:40 pm
by rdonnay
I just ran my \exp20\samples\printer\print2pdf.prg program on my Win 10 64 laptop.

It produces a perfectly fine .PDF file.

Re: DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Fri Jan 21, 2022 11:40 pm
by Wolfgang Ciriack
No problems here and at my customers with Win10/11 64 Bit .

Re: DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Sat Jan 22, 2022 1:42 am
by skiman
Hi,

Is this on a local PC or with remote desktop?

Re: DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Mon Jan 24, 2022 10:59 pm
by Diego Euri Almanzar
Skiman, it's a local PC.

Wolfgang, I tried the solution that Rdonnay gave me, and it worked very well for me. Although in DCPRINT you have to use the ACROBAT statement, the program does not call ACROBAT. The caller is 'Microsoft Print to PDF'. And, the resulting PDF document runs automatically in the Internet browser. At least, that was the result I got, and it seems to me an excellent solution for my purposes.

I thank you very much for your collaboration.

Best regards

Re: DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Tue Feb 08, 2022 4:24 pm
by Diego Euri Almanzar
The ACROBAT statement in combination 'Microsoft Print to PDF' still did not work for me in 64 bit.

This combination is perfect, very ingenious. I thought it worked for me on Windows 10 at 64 bit, but I forgot that my test computer is at 32 bit. I have visited some clients, who have Windows at 64, and it did not work for me. I installed 64 bit Windows on one of my test computers and it definitely doesn't work. The generated PDF is created fully encrypted, if the operating system is 64 bit. At 32 bit it works fine. Is there any way for the PDF generated with the following statements to work at 64 bit?

Best regart.


aOptions := { 0, NIL , '5', nil, nil, .f., 'Microsoft Print to PDF', 3, nil, .F., .F. }
DC_PrintPreviewAcrobatOpt( aOptions )
TMPpdf := "C:\APPWX\ALLPDF\"+alltrim(bcpimpor)+".PDF"
//
IF FILE(TMPpdf)
DELETE FILE (TMPpdf)
ENDIF


DCPRINT ON ACROBAT TO oPrinter TOFILE OUTFILE (TMPpdf)

Re: DCPRINT TO Microsoft Print to PDF DOES NOT WORK FOR ME AT 64 BIT

Posted: Thu Feb 10, 2022 2:57 pm
by Diego Euri Almanzar
I already found the solution. There is no problem creating the PDF on a 64 bit operating system. My confusion was in the name of the printer. When the name of the printer is not spelled exactly the same as the name of the printer installed on the computer, the PDF is not processed and is encrypted. In some companies you visit, the name
'Microsoft Print to PDF', had a variation on the letter t, from To. On some computers it is lowercase, and on others it is uppercase. For example:

'Microsoft Print to PDF'

Not equal to:

'Microsoft Print To PDF'

In order to generate the PDF document, the name of the printer within the program must be exactly the same as the name of the installed printer.

Everything is already solved. I thank you very much for your collaboration.

Best regards.