Solved

Printer handle in PB

Posted on 2004-08-26
6
790 Views
Last Modified: 2013-12-26
How can I get the printer's handle in PB?
0
Comment
Question by:magotici
  • 4
  • 2
6 Comments
 
LVL 33

Expert Comment

by:sajuks
ID: 11909458
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
 

Author Comment

by:magotici
ID: 11912592
Could you, please, explain me how to use it?
0
 
LVL 33

Accepted Solution

by:
sajuks earned 100 total points
ID: 11924495
// 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 33

Expert Comment

by:sajuks
ID: 11924510
What exactly are you trying to do ?
0
 

Author Comment

by:magotici
ID: 11930426
I have to print a graph.
Thank you for the solution.
0
 
LVL 33

Expert Comment

by:sajuks
ID: 11938465
Thanks for the points and grade
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Refresh JTable Content 6 207
How to create an Eclipse project for an OPC DA interface? 4 75
eclipse problems view not showing all the time 4 88
easiest way to find port number 12 109
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question