Home All Groups Group Topic Archive Search About

Using Word for RTF files creation to use with RichTextBox

Author
14 Feb 2006 5:10 PM
Marcel Saucier
Is that possible to create the body of a static (or fix) report using Word,
saving that report as a RTF file and then loading that file into a RichText
Box:

Example, with Word, I create the following report (using fonts size and
others minimum font features):
PRODUCT: +++++++++++++++++
SALES.................########.##
Provincial taxes....########.##
Federal taxes.......########.##
TOTAL.................########.##

Then, my application will take care of calculations & replaces ####.## by
numbers and +++++++++ by text, etc (I know how to do that).

***

Any GENERAL considerations about this approach ? Crystal Reports seems huge
& complex. I am looking for a simple solution for designing & maintenance of
fix-static reports in a window environment.

--
Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
programmer under Windows !

Author
15 Feb 2006 12:01 AM
CMM
Crystal Reports is one of the most unintuitive, bloated-for-what-it-does,
and bug-ridden product of software development ever. It was true 8 years ago
and it's still true today. Avoid it like the plague. Look into the
ReportViewer control that's part of VS2005. It has nothing to do with
Crystal.

If you really want to create your own manual simple flat "reports," I
wouldn't go the RTF route. Seems it would be easier to just construct HTML
using a stringbuilder, save it as a file, and display it in a Webbrowser
control.

--
-C. Moya
www.cmoya.com
Show quoteHide quote
"Marcel Saucier" <MarcelSauc***@discussions.microsoft.com> wrote in message
news:4CC3EEF4-013C-41B6-AC24-8ECAD5FD461D@microsoft.com...
> Is that possible to create the body of a static (or fix) report using
> Word,
> saving that report as a RTF file and then loading that file into a
> RichText
> Box:
>
> Example, with Word, I create the following report (using fonts size and
> others minimum font features):
> PRODUCT: +++++++++++++++++
> SALES.................########.##
> Provincial taxes....########.##
> Federal taxes.......########.##
> TOTAL.................########.##
>
> Then, my application will take care of calculations & replaces ####.## by
> numbers and +++++++++ by text, etc (I know how to do that).
>
> ***
>
> Any GENERAL considerations about this approach ? Crystal Reports seems
> huge
> & complex. I am looking for a simple solution for designing & maintenance
> of
> fix-static reports in a window environment.
>
> --
> Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
> programmer under Windows !
Author
15 Feb 2006 1:20 AM
Marcel Saucier
Thank you very much. And I am taking good notes about CR.
--
Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
programmer under Windows !


Show quoteHide quote
"CMM" wrote:

> Crystal Reports is one of the most unintuitive, bloated-for-what-it-does,
> and bug-ridden product of software development ever. It was true 8 years ago
> and it's still true today. Avoid it like the plague. Look into the
> ReportViewer control that's part of VS2005. It has nothing to do with
> Crystal.
>
> If you really want to create your own manual simple flat "reports," I
> wouldn't go the RTF route. Seems it would be easier to just construct HTML
> using a stringbuilder, save it as a file, and display it in a Webbrowser
> control.
>
> --
> -C. Moya
> www.cmoya.com
> "Marcel Saucier" <MarcelSauc***@discussions.microsoft.com> wrote in message
> news:4CC3EEF4-013C-41B6-AC24-8ECAD5FD461D@microsoft.com...
> > Is that possible to create the body of a static (or fix) report using
> > Word,
> > saving that report as a RTF file and then loading that file into a
> > RichText
> > Box:
> >
> > Example, with Word, I create the following report (using fonts size and
> > others minimum font features):
> > PRODUCT: +++++++++++++++++
> > SALES.................########.##
> > Provincial taxes....########.##
> > Federal taxes.......########.##
> > TOTAL.................########.##
> >
> > Then, my application will take care of calculations & replaces ####.## by
> > numbers and +++++++++ by text, etc (I know how to do that).
> >
> > ***
> >
> > Any GENERAL considerations about this approach ? Crystal Reports seems
> > huge
> > & complex. I am looking for a simple solution for designing & maintenance
> > of
> > fix-static reports in a window environment.
> >
> > --
> > Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
> > programmer under Windows !
>
>
>
Author
15 Feb 2006 1:16 AM
Dennis
Yes it's possible to do this.  However, you need to know some VBA for Word
documents which you can incorporate into your .net program with some minor
modifications.  Just curious but why don't you create the report directly
into a RichText box?
--
Dennis in Houston


Show quoteHide quote
"Marcel Saucier" wrote:

> Is that possible to create the body of a static (or fix) report using Word,
> saving that report as a RTF file and then loading that file into a RichText
> Box:
>
> Example, with Word, I create the following report (using fonts size and
> others minimum font features):
> PRODUCT: +++++++++++++++++
> SALES.................########.##
> Provincial taxes....########.##
> Federal taxes.......########.##
> TOTAL.................########.##
>
> Then, my application will take care of calculations & replaces ####.## by
> numbers and +++++++++ by text, etc (I know how to do that).
>
> ***
>
> Any GENERAL considerations about this approach ? Crystal Reports seems huge
> & complex. I am looking for a simple solution for designing & maintenance of
> fix-static reports in a window environment.

> --
> Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
> programmer under Windows !
Author
15 Feb 2006 12:57 PM
Marcel Saucier
Tax forms reports change every year. I am looking for an easy way of
maintaining those reports.
--
Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
programmer under Windows !


Show quoteHide quote
"Dennis" wrote:

> Yes it's possible to do this.  However, you need to know some VBA for Word
> documents which you can incorporate into your .net program with some minor
> modifications.  Just curious but why don't you create the report directly
> into a RichText box?
> --
> Dennis in Houston
>
>
> "Marcel Saucier" wrote:
>
> > Is that possible to create the body of a static (or fix) report using Word,
> > saving that report as a RTF file and then loading that file into a RichText
> > Box:
> >
> > Example, with Word, I create the following report (using fonts size and
> > others minimum font features):
> > PRODUCT: +++++++++++++++++
> > SALES.................########.##
> > Provincial taxes....########.##
> > Federal taxes.......########.##
> > TOTAL.................########.##
> >
> > Then, my application will take care of calculations & replaces ####.## by
> > numbers and +++++++++ by text, etc (I know how to do that).
> >
> > ***
> >
> > Any GENERAL considerations about this approach ? Crystal Reports seems huge
> > & complex. I am looking for a simple solution for designing & maintenance of
> > fix-static reports in a window environment.
> > 
> > --
> > Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
> > programmer under Windows !