We are testing the latest develop version (2.10e) and the only thing that we still can't control is the name of the file which is sent as attachement in an e-mail.
We miss something like SetEmailFileName. Is there maybe another solution ?
change name of attachement file in direct e-mail
-
- Posts: 3
- Joined: Tue Sep 02 2003
- Location: Belgium
Hello,
It seems you are using the DLL interface of CDIntf to send pdf files by e-mails while generating them by adding SendMail option to FileNameOptions().
If this is the case than the name of the attached pdf file will be the same as the name of the file created on disk. You can set the name of the pdf file by calling SetDefaultFileName().
Will this help?
It seems you are using the DLL interface of CDIntf to send pdf files by e-mails while generating them by adding SendMail option to FileNameOptions().
If this is the case than the name of the attached pdf file will be the same as the name of the file created on disk. You can set the name of the pdf file by calling SetDefaultFileName().
Will this help?
-
- Posts: 3
- Joined: Tue Sep 02 2003
- Location: Belgium
We are using the interface CDIntf210 and have everything set as we think it should. The file is correctly send but with the name mentioned in the registry under Email Filename = Application - xxx
The registry setting for File Name = c:\print\test.pdf
We tried with succes to create the .pdf file and send it with a calldll('CDIntf210.SendMail...) , but how can I replace the filename of the attachement when i want to email directly.
Thanks anyway for the reply
The registry setting for File Name = c:\print\test.pdf
We tried with succes to create the .pdf file and send it with a calldll('CDIntf210.SendMail...) , but how can I replace the filename of the attachement when i want to email directly.
Thanks anyway for the reply
Hi,
In the SendMail function there is a parameter called FileName this parameter will take two strings separated by a semicolon, the first one is the name of the pdf file as it exists on your system and the string after the semicolon is the name of the pdf file as you want it to appear in the attachement. You will find more information about this issue on page 44 of the Developers' manual "Common Driver Interface 210.pdf".
Hope this helps
In the SendMail function there is a parameter called FileName this parameter will take two strings separated by a semicolon, the first one is the name of the pdf file as it exists on your system and the string after the semicolon is the name of the pdf file as you want it to appear in the attachement. You will find more information about this issue on page 44 of the Developers' manual "Common Driver Interface 210.pdf".
Hope this helps
-
- Posts: 3
- Joined: Tue Sep 02 2003
- Location: Belgium
Hello again,
We tested the Sendmail function and believe that this a very complete and useful function, but our problem is that we need to consider an unknown time delay between the actually creation of a report ( + creation of a pdf file ) and the SendMail function to avoid the activation of the Sendmail where the Pdf isn't yet been created. Your Direct create pdf and Mail was the best solution we've found so far but then we don't seem to be able to rename the attachement file. Is there maybe another way to discuss this ?
Thanks for your reply
We tested the Sendmail function and believe that this a very complete and useful function, but our problem is that we need to consider an unknown time delay between the actually creation of a report ( + creation of a pdf file ) and the SendMail function to avoid the activation of the Sendmail where the Pdf isn't yet been created. Your Direct create pdf and Mail was the best solution we've found so far but then we don't seem to be able to rename the attachement file. Is there maybe another way to discuss this ?
Thanks for your reply
Hello,
Mainly you need to call the SendMail function after the pdf file is generated.
You can use the Broadcast Messages event of the driver, this will enable you to catch messages when printing starts and when it ends so you will know when the pdf file is generated.
You can discuss this issue with our Technical Support Engineers by sending an e-mail to support@amyuni. com or by calling our support lines, you will find all contact information at: http://www.amyuni.com/en/contact/index.html
Have a nice day.
Mainly you need to call the SendMail function after the pdf file is generated.
You can use the Broadcast Messages event of the driver, this will enable you to catch messages when printing starts and when it ends so you will know when the pdf file is generated.
You can discuss this issue with our Technical Support Engineers by sending an e-mail to support@amyuni. com or by calling our support lines, you will find all contact information at: http://www.amyuni.com/en/contact/index.html
Have a nice day.