Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] edamail works with PDF but not in excel, get a blank sheet

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] edamail works with PDF but not in excel, get a blank sheet
 Login/Join
 
Silver Member
posted
I have set up my stmp server and the coding below for PDF works fine and I get an output in pdf. However somehow when I use and open the excel option, I get a blank sheet every time with no records.

TABLE FILE CAR
PRINT *
IF RECORDLIMIT IS 10
ON TABLE HOLD AS MAIL_FILE FORMAT EXCEL
-*ON TABLE HOLD AS MAIL_FILE FORMAT PDF
END

-RUN
EX EDAMAIL email.com,,test,A,EXCEL,MAIL_FILE
-*EX EDAMAIL email.com,,test,A,PDF,MAIL_FILE

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 36 | Registered: October 01, 2003Report This Post
Virtuoso
posted Hide Post
It is a bug and it has been reported and, to the best of my knowledge, it is being worked on. You should open a case anyway so that you can be added to the "notification of fix" list.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver Member
posted Hide Post
Thanks for letting me know this is a known bug.
 
Posts: 36 | Registered: October 01, 2003Report This Post
Member
posted Hide Post
You need to use XHT and in windows explorer Tools -> Folder Options -> File Types, change XHT default Safari to open with Microsoft Excel.
 
Posts: 12 | Location: Dallas, TX | Registered: November 02, 2011Report This Post
Silver Member
posted Hide Post
For time being, I am using XHT along with XL2K but hopefully then Ibi can come up with a fix/update where EXCEL format can be used. thanks.
 
Posts: 36 | Registered: October 01, 2003Report This Post
Gold member
posted Hide Post
Hi,

if you are running a Windows Server (with .NET and powershell installed) + you are allowed to use -DOS commands you could also try the following:

 
-SET &TMPPATH = TEMPPATH(255,'A255');
-SET &TMPPATH = TRUNCATE(&TMPPATH);

TABLE FILE CAR
PRINT *
ON TABLE HOLD AS HTMP FORMAT EXCEL
END
-RUN

-SET &ATTACHMENT_FILENAME = &TMPPATH || 'htmp.xls';
 
   
-SET &SMTP_SERVER = '<enter your smtp server here>';
-SET &SENDER ='<enter your sender mail-addr here>';
-SET &RECEIVER ='<enter your receiver mail-addr here>';
-SET &SUBJECT = 'A test mail';
-SET &HTML_BODY = '<html><body><h3>This is a nice test mail</h3></body></html>';
-TYPE powershell "$SmtpClient = new-object system.net.mail.smtpClient('&SMTP_SERVER|'); $MailMessage = New-Object system.net.mail.mailmessage; $att = new-object Net.Mail.Attachment('&ATTACHMENT_FILENAME|'); $mailmessage.Attachments.Add($att); $mailmessage.from = '&SENDER|'; $mailmessage.To.add('&RECEIVER|'); $mailmessage.Subject = '&SUBJECT|'; $MailMessage.IsBodyHtml = $true; $mailmessage.Body = '&HTML_BODY|'; $smtpclient.Timeout = 30000; $smtpclient.Send($mailmessage);"
-DOS powershell "$SmtpClient = new-object system.net.mail.smtpClient('&SMTP_SERVER|'); $MailMessage = New-Object system.net.mail.mailmessage; $att = new-object Net.Mail.Attachment('&ATTACHMENT_FILENAME|'); $mailmessage.Attachments.Add($att); $mailmessage.from = '&SENDER|'; $mailmessage.To.add('&RECEIVER|'); $mailmessage.Subject = '&SUBJECT|'; $MailMessage.IsBodyHtml = $true; $mailmessage.Body = '&HTML_BODY|'; $smtpclient.Timeout = 30000; $smtpclient.Send($mailmessage);"
 


The advantage using powershell or an external software for mailing compared to edamail:

multiple attachments (use "$att = new-object Net.Mail.Attachment" multiple times) and nicely formated html mails (not only ref. lines)


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
Silver Member
posted Hide Post
Hello,
thanks for your suggestion, unfortunately I am on a solaris environment. If anyone knows of a similar suggestion for Solaris as linnex did, this would be greatly appreciated.
 
Posts: 36 | Registered: October 01, 2003Report This Post
Gold member
posted Hide Post
Hi again,

while I do not know the linux / unix equivalent exactly, you could have a look at "mutt" (www.mutt.org). From what I can see it should be able to perform the same stuff on solaris.

cheers Linne


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] edamail works with PDF but not in excel, get a blank sheet

Copyright © 1996-2020 Information Builders