Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 41253 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > WPF > Spire.Doc for WPF Quick Start ...
Lacy

Spire.Doc for WPF Quick Start

 Code Snippet posted by: Lacy | Posted on: 6/3/2012 | Category: WPF Codes | Views: 620 | Status: [Member] | Points: 40 | Alert Moderator   
Ads

This document aims at clearly introducing a simple "HelloWorld" demo about Spire.Doc for WPF by using Visual Studio. The below procedure will help you realize this task step by step. Before getting started, please make sure that Spire.Doc for WP F and Visual Studio are correctly installed on system.

Spire.Doc for WPF Download Zip:http://www.e-iceblue.com/downloads/hot_fix/spire.doc_hotfix_4.2.11.zip

using Spire.Doc;
using Spire.Doc.Documents;

namespace HelloWord_Spire.doc_WPF

{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

private void btn1_Click(object sender, RoutedEventArgs e)
{
//create a new document using spire.Doc
Document document = new Document();

//add one paragraph
Paragraph paragraph = document.AddSection().AddParagraph();
paragraph.AppendText("Hello, World!");

//save the document
document.SaveToFile(@"..\..\sample.doc", FileFormat.Doc);

//launch the document
System.Diagnostics.Process.Start(@"..\..\sample.doc");
}
}
}


Code Source:http://www.e-iceblue.com/Knowledgebase/Spire.Doc.html
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/20/2013 6:37:42 AM