473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

previewing a word document in MS webbrowser control

Hi,

I am opening a word document (RTF) in a webbrowser control and automating
it. Most automation features seem to work but when I execute:

wordApp.ActiveDocument.PrintPreview()

I get an exception thrown: "Requested view is not available."

Can anyone help me to get this document to preview?

Thanks, Jerry
Nov 21 '05 #1
1 2220
Jerry,

You need for that the ExecWB method and than the Print, I thought that there
will always be showed a subscreen, it is often been in this newsgroup how to
pass that, however I thought that I have never seen an answer.

http://msdn.microsoft.com/library/de...webbrowser.asp

http://msdn.microsoft.com/library/de...webbrowser.asp

I hope this helps?

Cor

"JerryShea" <jerry.shea dot nospam renewtek.com>
I am opening a word document (RTF) in a webbrowser control and automating
it. Most automation features seem to work but when I execute:

wordApp.ActiveDocument.PrintPreview()

I get an exception thrown: "Requested view is not available."

Can anyone help me to get this document to preview?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary | last post by:
Hi, there, 1. I would like to open a word document in a MDI environment. Every time, a new window outside my MDI poped out and show the word document. Is there a method I can use to specify the...
1
by: a94ws7 | last post by:
I am trying to automate a digital signature process with Microsoft Word, I have experimented by loading the word document into word and then from there placing that document inside a picturebox so...
3
by: John Smith | last post by:
Hey folks, I've got a Windows C# application that generates a .doc file and then allows the user to preview it. I generate the file using the StreamWriter class and do a flush() and a close()...
3
by: peshekeedweller | last post by:
In VB.net, how can I use automation to open a word document in a word window as a child window of an MDI form? Thanks in advance.
3
by: Dennis | last post by:
I would like to host a word document in a windows form. Can anyone give me any guidance on how to do this, i.e., a control that accepts and displays a word document? -- Dennis in Houston
2
by: Dean Richardson | last post by:
Hello, I am currently building a windows application in VB.NET. At the moment I have a word document saved locally which I open with the WebBrowser control. I cannot seem to save the changes...
0
by: Dean Richardson | last post by:
Hello, I am currently building a windows application in VB.NET. At the moment I have a word document saved locally which I open with the WebBrowser control. I cannot seem to save the...
1
by: =?Utf-8?B?SWdvcg==?= | last post by:
Hi ! I have a problem with WebControl I opened Microsoft Word document not directly, but in Visual Basic 6.0 WebBrowser control. When I selected with Range.Select any text the Saved property...
2
by: vipinkmathews | last post by:
I wrote code for previewing a word dcoument in C#. In the code when the user click preview button the document gets opened and later the user manually closes the document. But in Task manager the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.