java example exception in viewer.jsp

Stimulsoft Reports.JAVA discussion
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
Please describe where in code you setup key ?
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

The problem is resolved now, it's my fault.

Sorry for the disturbing.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: java example exception in viewer.jsp

Post by Andrew »

Thank you letting us know abou this.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Is there a way to keep a distance of the title and the y-axis number. It's too close now.
Attachments
title.png
title.png (84.4 KiB) Viewed 6026 times
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
It will be fixed in next version
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

OK, Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: java example exception in viewer.jsp

Post by HighAley »

Hello.

Our next build is already on our site.
We are always glad to help you.

Thank you.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Hello there, I've got an error occurred when using the "Send Email" function in the viewer page.

Why?

Another question: Can we generate .pdf or excel format report using Java. We wanna to send the report as an attachment by email. Could we achieve that, how?

Thanks a lot.
Attachments
mail.png
mail.png (29.8 KiB) Viewed 5969 times
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
You must configure your smtp server to send mails, for example:

Code: Select all

StiMailProperties mail = new StiMailProperties();
mail.setPassword("password");
mail.setUserName("username");
mail.setFrom("username@mail.com");
mail.setSmtpPort(465);
mail.setUseSSL(true);
mail.setHost("smtp.mail.com");
pageContext.setAttribute("mail", mail);

<stiwebviewer:webviewer report="<%=report%>" options="${options}"
		mailProperties="${mail}" viewerID="MyViewer" />
You need JavaMail API libs


You can use com.stimulsoft.report.StiExportManager class to export report to many formats & than send it manually.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Great, thanks.

And now we got another problem.

Please help with it.
Attachments
mail_error.png
mail_error.png (6.45 KiB) Viewed 5954 times
Post Reply