Dear NG,
I am just learning object orientated programing in general and C# in
particular.
My first real project is an inventory application using a SQL database. I
have
an item master editor working fine now and it is time to write some paper
reports
from data stored in SQL. I decided to give Crystal Reports a try.
By using the Wizard I have CrystalReport1.rpt sitting as a tab in my
project.
The book that I bought, Using Crystal Reports 10, gives an example in VB:
Dim Report As New ReportDocument
Report.Load("C:\My Reports\Sales.rpt")
What is the equivalent C# execution? I assume that I am going to need a
using statement. The VB Dim statement is probably the C# instantiation.
If I am going to have a path in C# I am probably going to need
double \\ as in: "C:\\My Reports\\Sales.rpt" Am I on the right track or
way off base?
Thinking now about this issue on a higher level, is Crystal Reports the best
way to go? I am an old dude and can code COBOL style reports from scratch.
What about generating text files and just printing them. What is the
procedure
for loading a general Windows printing object? Since reports are likely to
be long, I wish not to display the report on the screen, but generate the
report to a file and then have the user go to the File menu and select
Print File to begin this process.
In this posting I am looking for both direction and some specific C#
statements.
Thanks in advance,
Bob
Robert Schuldenfrei
bo*@s-i-inc.com