Results 1 to 5 of 5

Thread: is there a way to write rtf content in printdocument control ? ? ?

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    is there a way to write rtf content in printdocument control ? ? ?

    Dear All,
    we are trying to generate some complex reports using microsoft reportdocument and reportviewer control.

    the reason we don't use crystal report that we need to have full control over the printing document as it is supposed to contain different images varying according to user selections and also varying data tables according to user input.

    to make it short we have multiple hotel rates and information for each hotel and we want the system to create flyers for each hotel containing its images and description along with its rates.

    the only thing we had a problem with that the hotel description is saved in rtf format, we want to write it on the report preserving its format !!

    is it possible to write rtf block as it is on a report document ????

    thank you very much in advance

    BST RGDs

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: is there a way to write rtf content in printdocument control ? ? ?

    since the reportdocument object can only be written to by using the e.graphics object its no simple task.

    graphics only has the DrawString method to write text out, and none of them take RTF as a param (wouldn't that be nice)

    You may want to take a look at an article by Mike Gold. He writes a PHP color coded text editor with a richtextbox, and has a routine to print it, colors and all. I don't know if there are any limitations. Here is the article
    http://www.c-sharpcorner.com/Code/20...ntaxEditor.asp


    Also just so crystal reports doesn't get thrown under the bus, you can 100% create dynamic reports in crystal that display different images, in different spots...etc..

    you can even create a report totally via code from scratch at runtime.

  3. #3

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: is there a way to write rtf content in printdocument control ? ? ?

    Also just so crystal reports doesn't get thrown under the bus, you can 100% create dynamic reports in crystal that display different images, in different spots...etc..
    is it possible in crystal reports 10 with vs2k3 , and how, do you have any useful links to read ??

    thx . . .

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: is there a way to write rtf content in printdocument control ? ? ?

    I am sure its possible with CR10, although I only use CR that came with .NET

    I use VS 2K3 as well...

    You may want to check out the developer zone for .NET on the crystal website


    http://www.businessobjects.com/produ...f=devzone_main

    There is a zip file with 118 samples

  5. #5

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: is there a way to write rtf content in printdocument control ? ? ?

    i will look into this link

    thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width