Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Printing and OLE container's contents


Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2001, 02:21 AM
gordonl
Guest
 
Posts: n/a
Question Printing and OLE container's contents


I have a form with an OLE container that containes and embeded word document. Does anyone know a way to print this word document from a button on the VB form - and not have to open up the word document and to print it.

I also want another button that will save the word document to the hard drive, again without having to open up the document.

Reply With Quote
  #2  
Old 04-23-2001, 05:40 PM
Alex_Laing
Guest
 
Posts: n/a
Default Re: Printing and OLE container's contents

I have had the same issue with an excel document and the OLE Control. What you are asking is possible. Basically it involves setting the OLE control's 'Enabled' property to false and work behind the scenes with Word's object model(Word/VBA) from within VB. What this means is that every machine that your program will be on must have Word on it.

I solved my problem because I was familiar with Excel/VBA. I am not familiar with Word/VBA but I will try the solution I have already created and experiment with Word/VBA.

I will have to get back to you on that.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->