cancel
Showing results for 
Search instead for 
Did you mean: 

DataWindow.Print.Paper.Source not working

Former Member
0 Kudos

hi to all,

i'm trying to change the paper source for a printer before printing a datastore, but it seems to not work.

i have tested all the paper.source values in this way with no success.

for ll_c = 0 to 14
    lds_1.modify ("DataWindow.Print.Paper.Source='" +string(ll_c)+"'")
    if ll_s <> '' then messagebox(ll_s ,ll_c)
    lds_1.print()
next

the problem is present either in  pb 12.6 and pb 11.5 also using different printer models

what's wrong?

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Has somebody tried to change the paper bin modifying the DataWindow.Print.Paper.Source property with success?

Former Member
0 Kudos

It works for me with Kyocera printer (PB 12.1).

lds_temp.modify ("DataWindow.Print.Paper.Source=0")

(Source: auto)

lds_temp.modify ("DataWindow.Print.Paper.Source=4")

(Source: universal)

Former Member
0 Kudos

Thanks René

i've tried with  HP and Lexmark printers with no success.

In which OS did you change the paper source?

Thank in advance.

Alberto

Former Member
0 Kudos

Win 7 Professional 64 bit (SP 1)

Former Member
0 Kudos

I would assume that you did something like this, did you?

for ll_c = 0 to 14
    ll_s=lds_1.modify ("DataWindow.Print.Paper.Source='" +string(ll_c)+"'")
    if ll_s <> '' then messagebox(ll_s ,ll_c)
    lds_1.print()
next

Also, I think you don't need wrap the value with quotes. Have you tried something like this?

for ll_c = 0 to 14
    ll_s=lds_1.modify ("DataWindow.Print.Paper.Source=" +string(ll_c))
    if ll_s <> '' then messagebox(ll_s ,ll_c)
    lds_1.print()
next
Former Member
0 Kudos

Hi Neil,

i have tried without using quotes and also the dot notation but pb does not change paper source.