Display image in report and Email option
mohanaraj
600001
Dear all,
How can i display image in the report for example i want to display the company logo in the report can you explain in detail with its steps.
And also i want to email the generated report how it possible?
Explain both please.
Thanks in advance.
How can i display image in the report for example i want to display the company logo in the report can you explain in detail with its steps.
And also i want to email the generated report how it possible?
Explain both please.
Thanks in advance.
Comments
Just put the PictureObject on your report page, invoke its editor and load the image in it.
The email functionality is working in Windows.Forms now. I need to fix something to make it working in ASP.Net.
Dear AlexTZ,
Thank you for the solution.
Can you please fix the option for email this report.
It's not easy to fix; probably we will add this feature in the next major version.
Dear AlexTZ,
It is possible to email the .pdf report without dispaly the report (only generate the .pdf) and save automatically in default path without prompt the user to save this .pdf file and send this file as email attachment. (Separately by using button click )
How can we achieve.
i have an error generating a PDF and then sending it by email. That's what the page says:
Source Error:
Line 58: Dim ElPDFExport As PDFExport = New PDFExport
Line 59: ElEMailExport.Export = ElPDFExport
Line 60: ElEMailExport.SendEmail(ElReport)
Source File: C:\Inetpub\wwwroot\proves\newcharter.aspx.vb Line: 60
[ArgumentException: The parameter 'address' cannot be an empty string.
Parameter name: address]
System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding) +1496053
FastReport.Export.Email.EmailExport.SendEmail(Report report) +341
Newcharter.ImageButton1_Click(Object sender, ImageClickEventArgs e) in C:\Inetpub\wwwroot\proves\newcharter.aspx.vb:60
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
The code is very similar at your post:
I'm using Visual Studio 2010 with VB and FastReports.NET Demo 1.5.29 i'm evaluating it, in order to buy a license.
Thanks in advance !
Toni