The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Create PDF and attach to email
Posted: 08 Aug 06 2:14 PM
|
fiogf49gjkf0d I have a quote application in SLX 6.2.2 where I need to create a PDF of the quote and attach it to an e-mail when a button is clicked.
Does anyone have any suggestions and/or sample code to accomplish this?
Thanks,
Mike |
|
|
|
Re: Create PDF and attach to email
Posted: 09 Aug 06 1:35 AM
|
fiogf49gjkf0d Mike,
I'm working on something similar, and the solution we've come up with which may not be the prettiest but it works is to launch an Excel template for the quote, pre-fill the information from the Opportunity, save and then use CutePDF Writer to generate a PDF file all from one VBScript in SalesLogix |
|
|
|
Re: Create PDF and attach to email
Posted: 09 Aug 06 8:13 AM
|
fiogf49gjkf0d We use DynamicPDF™ Generator v3.0 for COM/ActiveX. It is much faster than spawning a word or excel document and looks much better. You can use any COM. What I do is create the document and automatically save it as an attachment. The users click a button to create it. The get a msgbox that tells them it is complete and attached to the opportunity. They then click the attachment tab and rmc the document and email it. I have also have done it straight to the email and to the screen as well. I have also used easyPDF in SLX to do the same. |
|
|
|
Re: Create PDF and attach to email
Posted: 09 Aug 06 8:49 AM
|
fiogf49gjkf0d You can also use the standard Crystal reporting engine in SLX accessed through code using the Crystal RDC to export the report to PDF format and then email the output. |
|
|
|
Re: Create PDF and attach to email
Posted: 09 Aug 06 1:38 PM
|
fiogf49gjkf0d As Kris mentioned, your best route is to use Crystal RDC. SalesLogix has a built in function to get an RDC object for a specified report. (IIRC it is Application.BasicFunctions.GetReportRDC). Once you have the RDC object it is quote simple to export the report to PDF and do whatever you want with it (including attach it to an email).
You can find the RDC developer docs on this site. See http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=29
-Ryan |
|
|
|