1. Philippe PILAT
  2. PowerServer 2020 or older (Obsolete)
  3. Tuesday, 20 November 2018 14:55 PM UTC

Hello all,

I have an application written in PB 2017 R2 Build 1769 deployed to Powerserver web.

The user is trying to print a DW :

a button is calling printsetup(), user chooses 'Microsoft Print To PDF'

another button is calling dw.print().

Problem : Nothing is printed.

Is it possible to do this while deployed to Powerserver WEB ?

If not, any workaround ?

Thanks, best regards.

 

Accepted Answer
Philippe PILAT Accepted Answer Pending Moderation
  1. Wednesday, 21 November 2018 09:49 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # Permalink

Finally found the problem.

The code in ancestor button [post close(parent)] was not overriden ...

Have a nice day :)

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 21 November 2018 15:16 PM UTC
Excellent news Philippe! :-)
  1. Helpful
There are no comments made yet.
Philippe PILAT Accepted Answer Pending Moderation
  1. Wednesday, 21 November 2018 08:28 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Chris,

Printing to a real printer works OK.

Printing to "native MS printers" Microsoft XPS Document Writer or Microsoft Print to PDF does not work, no prompt for file destination, no file generated

Environment is :

  1. PB 2017 R2 1769
  2. Windows 10
  3. project type : Web
  4. server type .NET / IIS
  5. published application run under IWA

When run from IDE, printing to Microsoft XPS Document Writer or Microsoft Print to PDF works OK.

Best regards,

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 21 November 2018 15:15 PM UTC
Sounds like we need to get Biil Gates out of retirement to get that fixed for you! I think that the issue is on the Micro$oft side as I tried a few other Non-MS PDF printers that I have installed and they all worked well. PB just generates standard "PostScript" - so any generic printer that handles that data stream type should work well.

PS: PrimoPDF is free (http://www.primopdf.com) ;-)
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 20 November 2018 16:50 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hi Phillipe;

  I have been doing this in PowerServer Web for a decade. What you describe sounds weird. It should work like in a native PB App.

  Can you tell us ...

  1. Have you tried printing to another printer?
  2. What web browser & version are you using?
  3. What version of MS-Windows are you using?
  4. Have your tried deploying your App as "WEB" in the PS Toolkit profile (vs "Both")?

FYI: Here is a screen capture of the test I just did from a PS Web App printing to a PrimoPDF printer (no issues) ...

 

 Maybe it's your PDF printer setup that might be the issue?

 

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.