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

This forum is for eXpress++ general support.
Post Reply
Message
Author
Diego Euri Almanzar
Posts: 155
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

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

#1 Post 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)

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

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

#2 Post 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.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

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

#3 Post by Wolfgang Ciriack »

No problems here and at my customers with Win10/11 64 Bit .
_______________________
Best Regards
Wolfgang

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

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

#4 Post by skiman »

Hi,

Is this on a local PC or with remote desktop?
Best regards,

Chris.
www.aboservice.be

Diego Euri Almanzar
Posts: 155
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

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

#5 Post 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

Diego Euri Almanzar
Posts: 155
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

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

#6 Post 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)

Diego Euri Almanzar
Posts: 155
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

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

#7 Post 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.

Post Reply