Solved

OLE printing

Posted on 1997-04-08
1
298 Views
Last Modified: 2010-04-03
Hello, ppl!
The problem is that I just can't print from OLEContainer object. :( Object contains a document, transferred from MSWord. I've GOT to print it's contains, but have no ideas about how to... There are no usable features for OLEContainer that could help me. Please assist!

 Thanks in progress,
              WizzarD.
gw@paul.cclu.lv
0
Comment
Question by:wizzard
1 Comment
 
LVL 2

Accepted Solution

by:
kolarb earned 100 total points
ID: 1335246
I have the same problem using the MS webbrowser control as an OLE2 object. The solution is to pass it an OLECOMMANDTARGET procedure with some parameters about printing (see my question on MSWEbBrowser and Delphi printing). The problem is that this was not implemented yet in Delphi 2 (perhaps Delphi 3). Visual C++ 4.2 (I believe this is the first one with this implemented) has it. So no go here. Try spying on MS Word and seeing what messages it send around, perhaps one of those would suffice. Another solution would be to send some hotkey word designated for printing (like ^P). I hope this helps...
0

Featured Post

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.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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