Live writer 2011, 代码染色测试
2010-10-12 22:07
127 查看
PrintPreview cw = new PrintPreview(); cw.ShowPreview(rtb); cw.HasCloseButton = false; //Hook up a handler to the Closed event before we display the PrintPreview window by calling the Show() method. cw.Closed += (t, a) => { if (cw.DialogResult.Value) { PrintDocument theDoc = new PrintDocument(); theDoc.PrintPage += (s, args) => { args.PageVisual = rtb; args.HasMorePages = false; }; theDoc.EndPrint += (s, args) => { MessageBox.Show("The document printed successfully", "Text Editor", MessageBoxButton.OK); }; theDoc.Print("Silverlight 4 Text Editor"); ReturnFocus(); } }; cw.Show();
相关文章推荐
- Windows Live Writer代码插件测试
- 用Windows Live Writer来写博客,简单测试下WLW 2011的效果
- Windows Live Writer代码插件测试
- 使用cf.SyntaxHighighter作为Windows Live Writer 2011的插件发布Python代码到博客园
- 测试Windows Live Writer编写博客,主要是代码格式
- WINDOWS LIVE WRITER 测试
- 代码着色插件 for Windows Live Writer
- (装)发布Live Writer代码着色插件CNBlogs.CodeHighlighter
- 测试使用windows live writer的adsense coder发布文章
- 测试一下window live writer
- windows live writer 怎样添加带有代码格式的日志
- 测试用是Windows Live Writer写日志
- windows live writer 测试
- windows live writer 向51CTO插入代码插件比较
- Windows Live Writer 代码高亮显示对比
- 测试一下windowsLiveWriter
- windows live writer 测试
- a small test by windows live writer 2011
- 测试 Windows Live Writer
- 测试使用WindowsLiveWriter写日志