Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3576

Re: how to get invoice file (pdf) via sdk

$
0
0

Hi yisroel,

i assume that you case is to send the invoice as pdf via mail to someone.

 

For this case there are 2 possible solutions:

1) On each form that you want to have this feature you have to catch the event after document save with the code below...

 

if (BusinessObjectInfo.EventType == BoEventTypes.et_FORM_DATA_ADD && BusinessObjectInfo.BeforeAction == false && BusinessObjectInfo.ActionSuccess == true)

            {

               //Do Print to PDF

            }

 

2) The second way (better for me) is to create to create an addon (or even better a windows service) for this job.

  • Addon way
    • The addon will find the unprinted documents and with a batch proccess will do the printing (it requires user action)
  • Windows service way
    • The application will run always and will check for new documents. For each new document that will be stored to the DB, will fire the proccess of document printing (and any other action that you want (such as mail etc))

 

 

 

In any case the best way as Johan mention before is to send the print to a virtual printer in order to create the pdf file.

 

 

Best Regards,

Evanggelos D. Plagianos


Viewing all articles
Browse latest Browse all 3576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>