Link to home
Start Free TrialLog in
Avatar of christophertozer
christophertozer

asked on

Email from Crystal Viewer as a PDF

I have created a report from ASP which previews in Crystal Viewer. I want the user to be able to hit a button  to create an email pop-up with a PDF of the report attached ready to mail. Is this possible ? If so I would appreciate some pointers on how to do this.

Thanks Chris
Avatar of Mike McCracken
Mike McCracken

Yes, it is.

Which version of Crystal?

Look at these examples
http://support.businessobjects.com/communityCS/FilesAndUpdates/aspxmps10.exe.asp

mlmcc
Avatar of christophertozer

ASKER

I am using version 9 viewer that comes with VS2003, do you need V10 to view the examples ? I have followed the instructions in the Readme but get the error "Error: Could not connect to the Web Component Server"

A further question; Neglected to state in my original question that this is a Web form not a Windows form, can this functionality still be used ?
Downloaded the CR V11 upgrade & installed it. Opened my Project & upgraded as VS suggested but the report will no longer preview. I have tried adding a new viewer & re-attaching the report and also re-saving in CR11 and then re-attaching the report but to no avail. I no longer get a .rpt tab in VS if this is significant. The error page I am seeing is as follows:

Not enough memory for operation.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Not enough memory for operation.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[COMException (0x80041004): Not enough memory for operation.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

[Exception: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
   CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
   CrystalDecisions.CrystalReports.Engine.ReportDocument.s()
   CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataDefinition()
   CR2.WebForm1.Page_Load(Object sender, EventArgs e)
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain()

Help please !

 
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad i oculd help

mlmcc