I don't design from an XML file. Notice that I said WriteXmlSchema, not
WriteXml. Write a _schema_ and design from the _schema_, then set the
report source at run time to a DataSet with that same schema, and it
should work.
I don't design from an XML file for that very reason... I worry that
telling Crystal "where the data is" will cause it to keep looking
there.
The only other detail is that if you design from a schema then I think
that the schema needs to be available at runtime, too. At least, that's
the way our system works.
(E-Mail Removed) wrote:
> Thanks for that, Bruce.
>
> I had somehow just come up with that concept myself when I checked back
> on usenet and saw your recommendation to do this very thing. I figured
> it was a 'work-around' but that it would give me the schema that I need
> to design the report.
>
> I wasn't able to get the dataset to bind at runtime, however. Right
> now, I am outputting (using WriteXML) the data in the dataset to the
> same XML file that the report was pointed to at design time. That
> actually works but I am pretty sure this IS a w/a and I worry about
> performance. Also, I had to give the ASP.NET account write access to a
> file in my web directory, something I don't really want to do.
>
> Any other tips are appreciated. Thanks again for the quick reply. I
> think I am okay for the short term as I can at least work on getting
> the reports looking good.
>
> T. Lex