HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Print Templates not working
Posted by: Bob Lail (
Date: Tuesday, 23-Aug-2005, 19:51:20

I'm trying to use print templates with the HtmlEditor, but they aren't working at all. I downloaded a fresh copy of the editor from this site, loaded the DemoHtmlApp, and placed the following code in the body of the btnPrint_Click event handler:

using( OpenFileDialog dialog = new OpenFileDialog() )

I tried several of the sample print templates from the article "Beyond Print Preview..." but the print preview dialog always looks the same.

I'm running IE 6.0.2900.2180 and have installed .NET beta 2.0 (however I compiled that experiment in Visual Studio 2003.

Any ideas? Any suggestions?


Re: Print Templates not working
Posted by: Tim (
Date: Wednesday, 24-Aug-2005, 08:37:48


It's a small bug. You can either include the 3rd argument (bPromptUser), or amend this override in HtmlEditor.cs:

public void Print(bool bPreview, String sTemplatePath)

Currently it always passes an empty string as the template path.


Re: Print Templates not working
Posted by: Bob Lail (
Date: Wednesday, 24-Aug-2005, 14:32:51

I'm back in businesssmiling smiley

Your Name: 
Your Email: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.