Coder Social home page Coder Social logo

vpksoft / vpksoft.winformsrtfprint Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 53 KB

A library to help to print the contents of a RichTextBox control.

Home Page: https://www.vpksoft.net/2015-03-31-13-33-28/libraries/utility-libraries

License: MIT License

C# 100.00%

vpksoft.winformsrtfprint's Introduction

VPKSoft.WinFormsRtfPrint

A library to help to print the contents of a RichTextBox control.

Sample

using VPKSoft.WinFormsRtfPrint;

namespace TestApp
{
    public partial class FormMain : Form
    {
        private void mnuPrint_Click(object sender, EventArgs e)
        {
            rtbPrintTest.PrintWithDialog();
        }
    }
}

OR

Use the static method overloads of the RtfPrint class:

using VPKSoft.WinFormsRtfPrint;

namespace TestApp
{
    public partial class FormMain : Form
    {
        private void mnuPrint_Click(object sender, EventArgs e)
        {
            RtfPrint.RichTextBox = rtbPrintTest;
            RtfPrint.PrintRichTextContents();
        }
    }
}

Notes

This library is based on the Microsoft article Getting WYSIWYG Print Results from a .NET RichTextBox by Martin Müller.

Thanks to

  • JetBrains for their open source license(s).

JetBrains

vpksoft.winformsrtfprint's People

Stargazers

well.james avatar

Watchers

James Cloos avatar Petteri Kautonen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.