Solved

OLE printing

Posted on 1997-04-08
1
292 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now