Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DHTML editing component

Posted on 2000-05-15
5
Medium Priority
?
719 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 800 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
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…

670 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