1. flores isidro
  2. PowerBuilder
  3. Tuesday, 13 June 2017 15:43 PM UTC
Help I need to thicken from the code the tray in which I want to print and use paper.source without getting any results.
flores isidro Accepted Answer Pending Moderation
  1. Wednesday, 14 June 2017 19:43 PM UTC
  2. PowerBuilder
  3. # 1
Thank you very much I will try it otherwise I will keep looking for the way to get the number you have defined the form ra for each tray

Greetings from Morelos Mexico
Comment
There are no comments made yet.
Daryl Foster Accepted Answer Pending Moderation
  1. Wednesday, 14 June 2017 02:24 AM UTC
  2. PowerBuilder
  3. # 2

I've found in the past that the paper.source enumerations Powerbuilder uses may not correspond with specific printer driver values.

A few years ago I used an evaluation program from Powerwhizz to find the driver specific values. We needed to print from Tray 3 on various printers which used different drivers.  For HP 4100 and 4050 the value was 260 and with the HP Universal driver it was 261 so we used:

either

dw_1.Modify("DataWindow.Print.paper.source=260")

or

dw_1.Modify("DataWindow.Print.paper.source=261")

I can't find the Powerwhizz site anymore but if this is your problem there should be a way to find the specific printer driver tray values though some api calls.

Comment
There are no comments made yet.
flores isidro Accepted Answer Pending Moderation
  1. Tuesday, 13 June 2017 20:37 PM UTC
  2. PowerBuilder
  3. # 3
SORRY
This is an application in power builder.

I'm using PB 11.5

I use a dw where I have the information to print

And the printer is an HP laserjet p3015

 

This is my code

 

dw_1.Modify("DataWindow.Print.Orientation=2")
dw_1.Modify("DataWindow.Print.Paper.Size=256")
dw_1.Modify("DataWindow.Print.CustomPage.Length=2160")
dw_1.Modify("DataWindow.Print.CustomPage.Width=2790")
dw_1.Modify("DataWindow.Print.Margin.Bottom=1")
dw_1.Modify("DataWindow.Print.Margin.Left=1")
dw_1.Modify("DataWindow.Print.Margin.Right=1")
dw_1.Modify("DataWindow.Print.Margin.Top=1")
dw_1.Modify("DataWindow.Print.paper.source=2")

 

It takes all the configuration that you need to except the paper.source
greetings thank you

 

 

 

 

 

Comment
There are no comments made yet.
Chris Pollach Accepted Answer Pending Moderation
  1. Tuesday, 13 June 2017 15:56 PM UTC
  2. PowerBuilder
  3. # 4

Hi flores;

   Can you tell us ...

1) PB version & build?

2) OéS version?

3) Is this a PB or Appeon Web app?

4) Are you using low-level print commands or a DataWindow?

5) What type of printer are you trying to print to?

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.