Batch email with SBO 8.8 and Crystal

Experts,
I have a client who wants to email Invoices added automatically to the customers. They have SBO 8.8 PL 10 and Crystal Reports.
Is there a way to do this with a Crystal report?
Thanks,
Marli

I got something like that creating a .exe that execute Crystal Report document in batch, save it as PDF and then send by email.
This is the main function:
Public Sub New()
        MyBase.New()
        '// Generamos un pdf a partir de Crystal Reports y lo enviamos por mail*
        Dim rptDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Dim adjunto As String = "C:
eportePDF.pdf"
        Dim rptPath As String = "C:
eporte.rpt"
        'rptDocument.Load(sPathReporte)
        Dim crExportOptions As New CrystalDecisions.Shared.ExportOptions
        Dim crDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions
        rptDocument.Load(rptPath)
        rptDocument.SetDatabaseLogon("sa", "SAPB1Admin")
        crDiskFileDestinationOptions.DiskFileName = adjunto
        crExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
        crExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
        crExportOptions.ExportDestinationOptions = crDiskFileDestinationOptions
        rptDocument.Export(crExportOptions)
        Try
            'enviamos el pdf por correo
            Dim correo As New MailMessage("yourmailfrom", "yourmailto")
            'Asunto
            correo.Subject = "Reporte diario SAP Business One"
            'Cuerpo del correo
            correo.Body = "Se adjunta listado de artículos"
            'Mostrar como HTML
            correo.IsBodyHtml = False
            'Prioridad de el correo
            correo.Priority = MailPriority.Normal
            Dim attachment As New System.Net.Mail.Attachment(adjunto)
            correo.Attachments.Add(attachment)
            'acto seguido le indicamos cual servidor utilizaremos
            'aquì usaremos por default a gmail y su puerto SMTP
            'pero en una futura entrega les mostraré como hacerlo
            'cn cualquier servidor
            Dim smtp As New SmtpClient()
            smtp.Host = "smtp.gmail.com"
            smtp.Port = 587
            smtp.Credentials = New System.Net.NetworkCredential("yourmailfrom", "yourpw")
            smtp.EnableSsl = True
            'listo tenemos la estructura de nuestro mensaje armada ahora enviemosla a nuestro destinatario y listo
            smtp.Send(correo)
        Catch ex As Exception
            Stop
        End Try
    End Sub
You have to change this code to generate your invoice (you should pass a parameter with docentry, by example), if you want to send the email just after invoice has been added, and integrate it in an add on, or also, you can change the code to iterate between all invoices have been created in the actual day and create and send one pdf for invoice, and use the windows task scheduler to run this .exe generated once a day, by example.
I wish it could help you.

Similar Messages

  • I get a weekly email with a PDF attachment and when I open it it's to large to print. To date I'm not able to find a way to shrink or adjust the size. The doc was created on M/S Office-excell

    I get a weekly email with a PDF attachment and when I open it it's to large to print and I know of no way to shrink or resize the doc. It's created in M/S excel. Can anymore assist....TX

    From: Test Screen Name [email protected]
    Sent: Sunday, August 04, 2013 11:32 AM
    To: gunner0490
    Subject: I'm not able to open PDF files in Adobe Reader XI.
    Re: I'm not able to open PDF files in Adobe Reader XI.
    created by Test Screen Name <http://forums.adobe.com/people/TestScreenName>  in Adobe Reader - View the full discussion <http://forums.adobe.com/message/5565198#5565198

  • How do I send an email with a group address and not show the addresses/names of the recipients?

    How do I send an email with a group address and not show the addresses/names of the recipients?

    Use BCC.   That's blind carbon copy.   And copy paste the address into the BCC field.  It really depends what e-mail program you use how to enable BCC.

  • When I get an email with a pic in and I go to reply a box drops Dow and asks "save photo" when I click on that it "seems" like nothing happens, bot are they being automatically saved someplace, where?

    When I get an email with a pic in and I go to reply a box drops Dow and asks "save photo" when I click on that it "seems" like nothing happens, bot are they being automatically saved someplace, where?

    If photos are saved they go to the Camera Roll in the Photos App.

  • When i send email with 2 account 3G and wi-fi it take 15 minutes help

    when i send email with 2 account 3G and wi-fi it take 15 minutes help

    Welcome to Apple Support Communities.
    It's probably quite simple, and nothing to do with your Address Book group.
    It is a matter of 'junk mail' or 'spam' filtering on the recipient end, I think.
    1. Apparently not everyone in your Address Book group (12 of 15 apparently?) has your current email address among their 'permitted email addresses', so, your original email message ends up in their 'junk mail' or 'spam filter' or whatever it is called by their email provider. Some businesses and schools also filter incoming messages for subject, language, content, or by sender's address (one company I dealt with prohibited all incoming email from Hotmail, for example), so it could be filtered at that level. In that case, the recipient might have to specifically ask the IT department to add your email address to a 'permitted' list.
    2. When someone else in the group hits 'reply all', THEIR email address IS among the 'permitted email addresses' for everyone else, and they are in effect 'forwarding' your message from their email address, so the filtering affecting your email address does not affect their re-sending of your message.

  • 48 Hours ago I started to upgrade to Mtn Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - FIX IT!

    48 Hours ago I started to upgrade to Mountain Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - HOW DO I (or you) FIX IT!?

    This is a User's Forum, yelling at us won't help. You have 90 days of customer support via telephone. Use them as they can interact with their system and hopefully get you back on track. Otherwise take it to them at the Genius Bar and have them make it good.

  • Issues with Bex query structures and Crystal Reports/Webi

    Hi experts,
    I'm having an issue with Bex Query structures and nulls. I've built a Crystal Report against a Bex query that uses a Bex Query structure. The structure looks like the following
    Budget $
    Budget %
    Actual $
    Actual %
    Budget YTD
    etc
    if I drag the structure into the Crystal Report detail section with a key figure it displays like this
    Budget $     <null>
    Budget %     <null>
    Actual $     300
    Actual %     85
    Budget YTD     250
    the null values are displayed (and this is what is required). However if I filter using a Record selection or group on a profit centre then the nulls along with the associated structure component are not displayed.
    Actual $     300
    Actual %     85
    Budget YTD     250
    Webi is also behaving similarly. Can anyone explain why the above is happening and suggest a solution either on the Bex side of things or on the Crystal Reports side of things? I'm confused as to why nulls are displayed in the first example and not the second.
    Business Objects Edge 3.1 SP2
    SAP Int Kit SP2
    OS: Linux
    BW 701 Level 6
    Crystal Reports 2008 V1
    Thanks
    Keith

    Hi,
    Crystal Reports and Web Intelligence will only show data which is in the cube. You could have an actual 0 or Null entry whithout grouping but by changing the selection / grouping in the report the data does not include such entry anymore.
    ingo

  • Emails with attachment send from and receive with XI

    Hi,..
    I have two questions regarding sending resp. sending mails from / to XI.
    A) is it possible to attach several files as attachment to mails sent via the mail adapter?
    Note: I do not want to send the message payload itself as attachment, but send an email with contents from the message payload and attach to this mail one or several files located at the disk as attachment?
    If , yes how can I achieve this.
    B) What happens with attached files, when the mail is sent to the XI mail adapter?
    Thanks in advance,
    Peter

    Hi
    >>A) is it possible to attach several files as attachment to mails sent via the mail adapter
    Yes it is possible ,go thru these blogs...
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Hope it helps.
    Regards
    Arpit Seth

  • Connection error -2147217387 with Java RAS SDK and Crystal Server 2011

    Due to a change in operating system, we are required to upgrade our Crystal Reports server from BusinessObjects Crystal Reports Server 11.5 to SAP Crystal Server 2011. We use the Java RAS SDK (RASCore 9.2.2.446 / RASApp 9.0) more or less as described in Java RAS2008-unmanaged exportreport. We use the Crystal Server to export reports stored on disk as PDF files.
    In SAP Crystal Server 2011, the CrystalReports2011ReportApplicationServer is configured with Request Port 1566 and Host Identifier 172.16.4.154 (the local machine). The Crystal Server, report-definition files, and Java VM are all on the same machine.
    The error is
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: XML serialization failed.---- Error code:-2147217387 Error code name:connectServer
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.v.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.ab.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at ourpackage.OurClass.openReport(OurClass.java:95)
         ... 6 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:189)
         at java.net.SocketInputStream.read(SocketInputStream.java:121)
         at java.net.SocketInputStream.read(SocketInputStream.java:203)
         at java.io.DataInputStream.readInt(DataInputStream.java:388)
    The code is as follows.
    ReportClientDocument clientDocument = new ReportClientDocument();
    clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
    // Error occurs on ReportClientDocument.open method
    clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.refreshRepositoryObjects.value());
    DatabaseController dbController = clientDocument.getDatabaseController();
    dbController.logon("dbuser", "dbpassword");
    ParameterFieldController pfController = clientDocument.getDataDefController().getParameterFieldController();
    Fields fields = clientDocument.getDataDefinition().getParameterFields();
    ParameterField oldParameter = (ParameterField) field.get(0);
    ParameterField newParameter = new ParameterField();
    oldParameter.copyTo(newParameter, false);
    newParameter.getCurrentValues().clear();
    ParameterFieldDiscreteValue newDiscreteValue = new ParameterFieldDiscreteValue();
    newDiscreteValue.setValue("paramValue");
    newParameter.getCurrentValues().add(0, newDiscreteValue);
    pfController.modify(oldParameter, newParameter);
    clientDocument.refreshReportDocument();
    PrintOutputController po = clientDocument.getPrintOutputController();
    InputStream is = po.export(reportFormat);
    Could anyone advise me how to proceed with resolving this error?

    Thanks for the link. I copied the CrystalReportsSDK.jar and logging.jar from the Crystal Server java\lib directory into my project and revised the code accordingly. Now, a slightly different error occurs at the same place:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: {0}. --- Connection reset by peer: socket write error---- Error code:-2147217387 [CRSDK00000039] Error code name:connectServer
      at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(ReportSDKServerException.java:115)
      at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.request(TCPIPCommunicationAdapter.java:659)
      at com.crystaldecisions.proxy.remoteagent.AdapterCommunicationChannel.send(AdapterCommunicationChannel.java:88)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.request(ReportAppSession.java:382)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.logon(ReportAppSession.java:342)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(ReportAppSession.java:330)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnectionAdapter(ClientDocument.java:627)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnection(ClientDocument.java:658)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.initializeServerConnection(ReportClientDocument.java:1420)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:982)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
      at ourPackage.OurClass.openReport(OurClass.java:97)
    The revised code is
    ReportClientDocument clientDocument = new ReportClientDocument();
    clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
    // Error occurs here
    clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.openAsReadOnly.value());

  • Send email with 1 excel file and multiple sheet

    Hi,
    I need to send an email with attachment file in excel format.  The problem is now the requirement requires 2 worksheets/tabs in 1 excel file.
    For example: I need to put details data in sheet1 and summary data in sheet2 and this program should be working also if it is run in background mode.
    Currently, I’m using cl_document_bcs to create document, but could not find a way to create 2 tabs in the excel file.
    Has anyone got an ideas on how it should done?

    Hi,
    Welcome to SDN.
    check these links :
    /people/sap.user72/blog/2006/02/07/downloading-data-into-excel-with-format-options
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c
    Regards
    Appana
    *reward Points for helpful answers

  • SBO 8.8 and Crystal Reports

    Has anyone experienced problems with Crystal Reports after upgrading to 8.8?  Any information will be appreciated.  Crystal stops working unexpectedly and crashes SBO,  just generally acts strangely. 
    Thanks,
    Marilyn

    Hi Marilyn,
    If you used CR add-on in previous version, you have to do much more than usual. The add-on need to be uninstalled before upgrade to 8.8. New version has the CR integrated in B1.
    Thanks,
    Gordon

  • I am not receiving email with password recovery reset and I can't remember security questions

    Please Help, My phone was stolen and I cant login to find my iphone. I have not receive any email at my hotmail acct

    1)  Apple ID: All about Apple ID security questions
    2)  See Here... ask to speak with the Account Security Team...
    Apple ID: Contacting Apple for help with Apple ID account security

  • SBO B1 2007 and Crystal Report AddOn

    Hi,
    My client is using SAP 2007 SP00 PL49, SAP Crystal Report Add on is 2.0.0.7 and they have Beas 6.70.07
    They have encountered problem "The request cannot be submitted for background processing".  Yes, I am aware there could be any problem related to that.
    What I notice is, on the workstation with SAP Business One client running, whenever user print a report named "Work Order", in the temp folder it creates one .rpt and 26 tmp files (Note that I have made up the number)
    Work Order {C0ECP901-C6F6.......}.rpt
    ~cpe{51DD9109........}.tmp
    ~cpe{71DD9109........}.tmp
    ~cpe{52DD9109........}.tmp
    ~cpe{53DD9109........}.tmp
    ~cpe{54DD9109........}.tmp
    Is it normal?  Does anyone know what are these .tmp files?

    In case anyone is interested.
    I managed to drill down and get around with the following solutions.  Still in progress of monitoring, but seems to solve part of the problem.
    1. Open up the JPEG in Accessories--> Paint and notice that the JPEG is too big and cannot be seen without adjustting the scrolling bar.  Reduce the image size seems to work.
    2. The report is using dynamic graphic and reading JPEG path from a UDT with column 'type' and 'path'.  Subreport is used with record selection Type='Precheck'. When there was no Precheck type JPEG, it seems to crash.  We have asked client to add in type='precheck' and hyphen in path when it is not applicable.  In that sense, it will return something to the report.
    3. We also have subreport that read material issues.  when there was no material issue in the subreport, it crash.  So, we do the following:
    - section express - tick suppress blank section
    - right click subreport, tick suppress blank subreport.
    - in Subreport, at report option, we select suppress printing when no records.
    Note that workaround in point 3 does not seem to work for pictures.  So, it might be worth suppressing with formulas.

  • How to open (for example) I get an email with a grocery flyer, and click on view full flyer, but it won't open.

    That pretty much sums it up. Emails that arrive, that I have to click on to open up their link, doesn't work.

    # Click the ≡ Menu Button and choose Add-ons.
    # Click Extensions on the left.
    # Click the Remove button next to "PDF Viewer". This functionality has been built into Firefox since version 19.
    # Restart Firefox.
    If the problems persist,
    # [[Update Firefox to the latest version]]
    # [[How to clear the Firefox cache|Clear the cache]]
    # [[Delete cookies to remove the information websites have stored on your computer|Delete cookies from the site in question]]
    # If that doesn't help, check if the problem occurs when you start Firefox with add-ons disabled (AKA Safe Mode).
    #* [[Troubleshoot Firefox issues using Safe Mode]]
    Also note that your system is infested with malware (though at the time of your post, malicious add-ons were disabled and therefore had no effect and couldn't connect to the Internet through Firefox).
    * [http://malwaretips.com/blogs/greatarcadehits-virus-removal/ Remove GreatArcadeHits pop-up ads | Malware Tips]
    * [[Troubleshoot Firefox issues caused by malware]]

  • Send email with column values before and after change with workflow

    I am trying to send an email to specified users when a column in a list changes in MOSS 2007 with workflow. I have a comments column in a list and whenever any user updates that comment, a mail should go to the creator and specific group stating what has
    changed.
    I saw a response which states to create 2 lists and keep them in sync and compare values of comments from the two lists. But that is not a perfect solution.
    Please help. Thanks in advance.

    Hi,
    If we want to compare a column with itself, we need the help of another column. We can create a column in the same list
    named Comment2 for example, and it’s the backup copy of
    comments.
    The workflow conditions can be set that if
    comments not equal Comment2, in Actions set send an email (we can get the previous value in
    Comment2 and new value in comments), and then update the
    Comment2 to comments.
    Thanks,
    Emir

Maybe you are looking for

  • How to subscribe a folder or a document with read-permission

    Hi, We´re using SAP NetWeaver 2004s, SPS10. Without read- and write-permissions you can´t open the details-iview for a document or a folder. Well, how is it possible to subscribe an object (service permission = "Subscribe (Myself only)" ist set) with

  • Differentiation between B2B and A2A

    Hi, Can anybody give me a real time example between B2B and A2A in general and XI Perspective? Points Assured Regards, B.Anandh

  • Error referencing netweaver webserver

    Hello I am experiencing a problem when I use a partner link that references a webserver in SAP netweaver. For some reason, the wsdls published in netweaver are split into three wslds. When i reference it in the partner link wizard, oracle bpel asks i

  • JTextPane, Columns and Formatting

    Hi All, I have a small problem with creating columns in a JTextPane and setting the text for that desired Column. I am trying to achieve a layout similar to the following: Title - Centered Information set 1 Information set 2 So the idea is that I hav

  • Manual Tasks not updating correctly once timesheets are approved

    I created several manual tasks as I needed more control over the dates. For example "Team Meetings" start 2/2/15 - 4/29/15. After creating the task we scheduled these to start on 2/4. Resources that attended the meeting posted time for 2/4 while thos