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
Solved

Printer handle in PB

Posted on 2004-08-26
6
795 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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.

828 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