Printer handle in PB

How can I get the printer's handle in PB?
magoticiAsked:
Who is Participating?
 
sajuksConnect With a Mentor Commented:
// 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
 
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.