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.
Print Templates not working
Posted by: Bob Lail
Date: Tuesday, 23-Aug-2005, 20: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, 09: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.