Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6205123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:12:59+00:00 2026-05-24T05:12:59+00:00

My goal is to create report in WPF using dev express. I want to

  • 0

My goal is to create report in WPF using dev express. I want to add word or pdf documents into report.

For word documents, I am opening word document into RichEditControl, saving it into memory stream as rtf document and using XRRichText control, I am adding rtf document into report.

public void CreateReport()
{
    RichEditControl richEdit = new RichEditControl();
    MemoryStream stream = new MemoryStream();
    XRRichText rtfDoc = new XRRichText();

    richEdit.LoadDocument(@"word document path", DocumentFormat.OpenXml);
    richEdit.SaveDocument(stream, DevExpress.XtraRichEdit.DocumentFormat.Rtf);

    rtfDoc.LoadFile(stream, XRRichTextStreamType.RtfText);
    rtfDoc.WidthF = 550F;

    this.Detail.Controls.Add(rtfDoc);
    this.RequestParameters = false;
    this.CreateDocument();
}

Is this a recommended way to add word document as rtf?
and also, Instead of word document, how can I add pdf document into report?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:13:00+00:00Added an answer on May 24, 2026 at 5:13 am

    Check the XtraRichEdit – Document Server (available now in v2011, volume 1) blog post, which may be helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Goal: Create Photomosaics programmatically using .NET and C#. Main reason I'd like to do
The goal: To create a .NET dll i can reference from inside SQL Server
My goal here is to create a very simple template language. At the moment,
For example my table is here>> CREATE TABLE tProject( name nvarchar(1000), Goal ntext, Activities
My goal is to integrate testing into my development environment (as post-build step). I
I'm using a method outline by gregor ( Create cronjob with Zend Framework )
my goal: create an image gallery with each image having a description, name, title,
My goal is to create a generic function that selects a value in a
The end goal is to create a helper found at the end called show_status(contact,event).
Goal: Create Netbean project and put on repository (any). When other developers check out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.