• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 829
  • Last Modified:

Printer handle in PB

How can I get the printer's handle in PB?
0
magotici
Asked:
magotici
  • 4
  • 2
1 Solution
 
sajuksCommented:
FUNCTION long  PRP_GetDC9 (long printjob) library "PBVM90.dll" alias for
"PRP_GetDC"
FUNCTION long  PRP_GetDC10 (long printjob) library "PBSHR100.dll" alias for
"PRP_GetDC"
0
 
magoticiAuthor Commented:
Could you, please, explain me how to use it?
0
 
sajuksCommented:
// try this
  Function long PRP_GetDC(int thejob) Library "pbshr050.dll"
// Note: use long if 32 bit, Int if 16 bit

long lwind_handle, l_job

//open printer
l_job=printopen()
// get handle
lwind_handle = PRP_GetDC(l_job)
// First impression object - hdc, hdctype,top,left,bottom,right, layout,stretch

uo_graph.object.draw(lwind_handle,2,500,300,1650,2000,1,0)
printDataWindow(l_job,dw_notes)
printclose(l_job)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
sajuksCommented:
What exactly are you trying to do ?
0
 
magoticiAuthor Commented:
I have to print a graph.
Thank you for the solution.
0
 
sajuksCommented:
Thanks for the points and grade
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now