Solved

DHTML editing component

Posted on 2000-05-15
5
649 Views
Last Modified: 2008-02-01
Hi,
I’m using DHTML editing component within the web page.
Do anybody know how to print out the content of  DHTML control
programmatically?
Thanks
0
Comment
Question by:robson
  • 3
5 Comments
 

Author Comment

by:robson
ID: 2811801
no comments
0
 

Expert Comment

by:aalternet
ID: 2811984
which component?
where do you want to print it's content?
0
 
LVL 10

Accepted Solution

by:
kollegov earned 200 total points
ID: 2812850
Quote from MSDN library on DHTMLediting component (safe-for-scripting version)
--------
To conform to Web application standards, the safe-for-scripting version of the control does not support reading or writing directly to disk, and does not support printing.

....
The following list indicates the features of the DHTML Editing control that are not available in the safe-for-scripting version:

LoadDo cument method
SaveDo cument method
PrintDocument method
BrowseMo de property

---------------------
PrintDocument Method

Description

Prints the current document.
Note The PrintDocument method is the only way to print the contents of the control. If the control is hosted inside a container such as a form or Web page and you call the container's Print command, the contents of the DHTML Editing control will appear as a blank rectangle.

Syntax

object. PrintDocument [bfWithUI]

bfWithUI -  Optional. VARIANT value of type VT_BOOL that specifies whether the method displays the Windows Print dialog box. If the value is set to True, the dialog box is displayed. If the value is set to False, or if the parameter is omitted, the current document is printed silently.

--------



MSDN\inet.chm::/workshop/author/dhtml/edit/ref/cncpt.htm


So if you use unsafe-for-scripting
version you can use PrintDocument() method.

0
 

Author Comment

by:robson
ID: 2814060
Adjusted points from 100 to 200
0
 

Author Comment

by:robson
ID: 2814061
Thanks,it was what I've been looking for.
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

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 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

19 Experts available now in Live!

Get 1:1 Help Now