Solved

Printer handle in PB

Posted on 2004-08-26
6
801 Views
Last Modified: 2013-12-26
How can I get the printer's handle in PB?
0
Comment
Question by:magotici
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
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…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

749 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