List Info

Thread: C-Sharp (C#) Group: Crystal Reports not loading DataSet




C-Sharp (C#) Group: Crystal Reports not loading DataSet
country flaguser name
United States
2007-08-02 21:53:12
I'm loading a DataSet from an ArrayList and debugging shows
that the
DataSet is being populated correctly, then all I want to do
is pass
this DS through to a CrystalReport and (without using the
viewer)
print the result.

I'm using the following code:

                crBinLocLabel oRpt = new crBinLocLabel();
                oRpt.SetDataSource(dsLocs);
                oRpt.PrintToPrinter(1, true, 0, 0);

Not rocket science but for some reason it's only printing a
blank
page...to test whether it was a printer problem I put some
static text
onto the CrystalReport and it printed successfully which
infers that
the DataSet isn't being loaded correctly.

Any help would be greately appreciated!!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


C-Sharp (C#) Group: Re: Crystal Reports not loading DataSet
country flaguser name
United States
2007-08-03 00:23:07
Nevermind, figured it out. I was cleverly forgetting to add
the new
row after I'd created it so it never got added to the
dataset. I need
more sleep I think!

On Aug 3, 12:53 pm, "m.wanstall"
<m.wanst...gmail.com> wrote:
> I'm loading a DataSet from an ArrayList and debugging
shows that the
> DataSet is being populated correctly, then all I want
to do is pass
> this DS through to a CrystalReport and (without using
the viewer)
> print the result.
>
> I'm using the following code:
>
>                 crBinLocLabel oRpt = new
crBinLocLabel();
>                 oRpt.SetDataSource(dsLocs);
>                 oRpt.PrintToPrinter(1, true, 0, 0);
>
> Not rocket science but for some reason it's only
printing a blank
> page...to test whether it was a printer problem I put
some static text
> onto the CrystalReport and it printed successfully
which infers that
> the DataSet isn't being loaded correctly.
>
> Any help would be greately appreciated!!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )