Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Trying to Auto Export a report Post Reply Post New Topic
Author Message
tattoo
Newbie
Newbie
Avatar

Joined: 02 Jan 2009
Location: Canada
Online Status: Offline
Posts: 3
Quote tattoo Replybullet Topic: Trying to Auto Export a report
    Posted: 02 Jan 2009 at 10:41pm
Hello All,
 
I am using Visual Studio 2005 and SQL Server.
 
My application is an Invoicing app. which works fine except
the user now has a requirement to email Invoices instead of just printing them.
 
I found some code examples and in the proccess of trying to implement them
I have an error coming with the following line of code.
 

hierarchicalGroupingReport.ExportToDisk(ExportFormatType.CrystalReport, myFileName)

The error displayed is that hierarchicalGroupingReport is not declared.   I can't find in any of the examples I have seen where this comes from.

Can anyone please tell me where this is declared ?
 
My plan for this feature is to automatically Export the Invoice to a pre-named report and then have my program call my email code.
 
Thanks
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 05 Jan 2009 at 6:24am
have you visited http://devlibrary.businessobjects.com/BusinessObjectsXI/en/en/RAS_SDK/rassdk_net_doc/doc/rassdk_net_doc/html/BindingScenarios11.html  it mentions dll to import for the HierarchicalGroupingReport feature.  I am guessing the you want to keep the data in some form. 
 
I went a different route for email support...I exported to PDF and then attached to the email.
 
Hope this helps
IP IP Logged
tattoo
Newbie
Newbie
Avatar

Joined: 02 Jan 2009
Location: Canada
Online Status: Offline
Posts: 3
Quote tattoo Replybullet Posted: 11 Jan 2009 at 4:24pm

Lokwelle,

I took your advice and modified my app. to also export to pdf and then send
the email.  worked out great thanks
 
 
tattoo
Programming is easy. It's knowing how to do it that is hard...
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.039 seconds.