Include attachments in PO_SOURCING_XSLFO

Is there way to embed the actual content of the attachment (if it a Word Doc or a Text file) in the report?
ie...is there syntax in xsl-fo that will allow us to specify a file name and will embed the text of the attachments for the Sourcing Style Sheet?

I would suggest you to try the following:
Let’s say, you have Word document preliminarily saved in WordML format (Word XML) – Text.xml.
And a trivial XML file, used in transformation:
<?xml version="1.0" encoding="UTF-8"?>
<root/>
To embed the Word document using XSLT, you might use the following XSL code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xml:space="preserve">
<xsl:variable name="word-file" select="document('Test.xml')"/>
<xsl:template match="root">
<xsl:copy-of select="$word-file"/>
</xsl:template>
</xsl:stylesheet>
This solution is based on XSLT usage and should work. But in general, for Word files conversion and embedding it to XSL-FO it looks more natural to use WordML2FO stylesheets, i.e. to transform the WordML document to XSL FO and embed the result into the destination document, in XSL FO format.

Similar Messages

  • "Include Attachments" option in Mail Save As... Dialog doesn't work

    Back in the day (Lion) the "Include Attachments" check box in the Mail Save As... dialog used to save mail attachments along with the text as .RTFD.  Sometime in the past this changed, and now (Mavericks) the only affect of checking that box is that the extension of the saved file changes from .RTF to .RTFD, but the saved file remains identical, with only the text and no attachments.  Surely this is a bug.  Is there now any way to save an email as RTFD with the attachments?
    I'm bringing this up again since the previous thread on the subject was archived back in 2012 without any comprehension.  Time for a revisit.

    You should post here:
    Microsoft Office forums >
    Word IT Pro Discussions
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Include attachments in a xml file without using mail adapter

    Hello Experts,
    Is there a way to include attachments like pdf or excel in a xml file?
    It is a file to file scenario in which i have to include the attachment in the output file.
    Thanks and regards,
    Merrilly

    Hi,
    Check this links,
    PDF
    SAP Network Blog: XI: Read data from PDF file in Sender Adapter
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    SAP Network Blog: XI: Generate PDF file out of file adapter
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    EXCEL FILES
    SAP Network Blog: XI: Generating Excel files without the Java nor the Conversion agent not possible?
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    SAP Network Blog: Read Excel instead of XML through FileAdapter
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    Regards,
    Phani
    Reward points if Helpful

  • Adobe Acrobat X - convert outlook email to pdf and include attachments as pdf

    Is there a way to save an Outlook email as a PDF and include attachments as extra pages within the same PDF? I know I can convert an email to PDF and it will include the attachments as links.  My end users feel that their clients won't understand the link feature, and/or the paper clip on the side pane.  They'd rather convert an email and have it's attachments converted also, making the pdf an email message + converted attachments....all in one process.  The only way currently is to open each attachment and convert them individially, then combine the email pdf and attachment pdf together.  Too many steps involveed there.
    make sense?
    Thanks,
    Jon Wooten

    Same question here, but for Lotus Notes!! Seems ridiculously simple.

  • Include Attachments Option with E-Mail Notifications

    Under Options > E-Mail Notifications in addtion to "include submitted data" and "include empty fields" it would be nice to have a check option for "include attachments."
    We have clients who occasionally attach photos to our forms.  It would streamline productivity to have the option to receive the attachment via the e-mail notification instead of a requirement to log in to forms central and download the file seperately.
    Thank you.

    For some reason, the system won't let me create a new Idea.  I've tried submitting a few times and I get the following error message when I try to submit:
    "It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake."
    I have submitted ideas in the past, I'm not sure why I can't now.
    Thanks,
    Ryan

  • Mail: save as no longer includes attachments

    When I use "save as" and check "include attachments" the attachments are not included.
    I can open the attachment iin the email OK.
    Any ideas?

    Might be helpful to list some system specifics.  At this point we don't even know whether you're using a Mac or PC.
    Clearing Photoshop preferences to defaults then re-establishing your own preferences may help.  This involves pressing and holding 3 keys during a cold start of Photoshop, then confirming deletion of the current preferences.
    -Noel

  • Mail message "Save as..." doesn't save attachments when "include attachments" is ticked

    Mail message "Save As..." doesn't save attachments when "Include Attachments" is ticked for "Rich Text Format"
    Messages are supposed to be saved as rtfx files (actually folders that include the attchments in seperate files)
    It worked fine in 10.6
    How do I submit a bug report?  I have sent several request through the "Provide Mail Feedback" link since 10.7 - no joy.
    Thanks

    You can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • Forwarded messages accessed by android phone do not include attachments

    I have a Samsung Galaxy S2 and access e-mail thru phone browser.  The forwarded messages do not include attachments. 
    Why is this happenning?
    When I forward messages thru internet browser thru laptop, messages forward attachments fine.

    I am somewhat confused by your title and post. To clarify, is it:
    1. Messages forwarded from your phone do not show attachments when checked from anywhere.
    2. Messages forwarded from your phone do not show attachments when checked from your phone.
    3. Messages forwarded from anywhere do not show attachments when checked from your phone.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Including attachments from PDF in Save as Draft and Submit as XDP

    When I wrote the first large process years ago, I ran into the problem of saving attachments that are in the PDF. If you ask the question, the response will be that you have to submit as PDF. That in turn has it's own other problems which when trying to solve, the answer given is "That is because you are submitting as a PDF". I have seen many ask the same thing I wanted: Submit as XDP, but include the attachments. This also includes that the built in Save Draft save them too.
    The summary is this: Loop through the attachments in JavaScript, Base64 encode them and stick them into the DOM. On the server side, use a script step to loop through and create a map of document objects to pass to the next render.
    The following needs to be called from a preSubmit event passing event.target. You'll need to add the nodes referenced to your schema.
    function embedAttachments(oParent) {
        // Get the list of attachments
        var oDataObjects = oParent.dataObjects;
        //app.alert(oDataObjects);
        var rootNode = xfa.datasets.data.resolveNode("[Your Data Root Node]");
        var oAttachData = rootNode.nodes.namedItem("FileAttachments");
        var oldNodes = oAttachData.nodes;
        //wipe out empty nodes
        while (oldNodes.length != 0) {
          oldNodes.remove(oAttachData.nodes.item(0));
        if (oDataObjects != null) {
          var count = oDataObjects.length;
          if (count > 0) {
              // Loop through all the attachments
              for (var i = 0; i < count; i++) {
                // Grab the next attachment
                var oFile = oParent.getDataObjectContents(oDataObjects[i].name);   
                  // Get a new stream with the image encoded as base64
                var vEncodedStream = Net.streamEncode(oFile, "base64");
                // Get a string from the stream
                var sBase64 = util.stringFromStream(vEncodedStream);
                  //console.println(sBase64);
                  // Copy the data to the XML
                var oNewNode = xfa.datasets.createNode("dataGroup", "FileAttachment");
                oAttachData.nodes.append(oNewNode);
                var oName = xfa.datasets.createNode("dataValue", "FileName");
                var oDesc = xfa.datasets.createNode("dataValue", "FileDesc");
                var oData = xfa.datasets.createNode("dataValue", "Base64Data");
                oName.value = oDataObjects[i].path;
                oDesc.value = oDataObjects[i].description;
                oData.value = sBase64;
                oNewNode.nodes.append(oName);
                oNewNode.nodes.append(oDesc);
                oNewNode.nodes.append(oData);   
    It also needs to be called from ContainerFoundation_JS in the form bridge.
    Add this variable:
    var thisDoc = null;
    Add this line of code at the top of RegisterMessageHandler:
        thisDoc = event.target;
    Add this line of code to the top of getData function:
    xfa.form.[Root Node].[Script Object].embedAttachments(thisDoc);
    Here is the Java code to add to a script object. I put mine in a custom render.
    import java.util.HashMap;
    import java.util.*;
    import org.w3c.dom.*;
    import com.adobe.idp.Document;
    import org.apache.commons.codec.binary.Base64;
    int count = 0;
    Map attachmentMap = new HashMap();
    Node ndAttach = patExecContext.getProcessDataValue("/process_data/xmlData/Formdata/FileAttachments");
    if (ndAttach != null) {
        NodeList children = ndAttach.getChildNodes();
        if (children != null) {
            count = children.getLength();
    for (int i = 1; i <= count; i++){
        String name = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/ FileAttachment[" + i + "]/FileName");
        String desc = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/ FileAttachment[" + i + "]/FileDesc");
        String b64Data = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/ FileAttachment[" + i + "]/Base64Data");
        if (b64Data != null && b64Data.length() != 0) {
            Document attDoc = new Document((new Base64()).decode(b64Data.getBytes()));
            attDoc.setAttribute("basename", name);
            attDoc.setAttribute("description", desc);
            attDoc.setAttribute("wsPermission", "1");
            attDoc.passivate();
            attachmentMap.put(name, attDoc);
    patExecContext.setProcessDataMapValue("/process_data/mapAttachments", attachmentMap);
    After I wrote that, I realized there is a method to create a document from Base64. Since I can inspect the map during record and play back and see that the documents are stored Base64, I think I could speed up the process by changing to the other method. I am assuming it would prevent a decode then encode. This same technique might also be applied to annotations.

    Revised Execute script. Server was running out of heap space with large attachments. Creating the Document objects as temp files instead of in memory solves that. I also added the part that wipes the Base64 Attachments out of the XML.
            int count = 0;
            Map attachmentMap = new HashMap();
            String name="";
            String b64Data="";
            File tempFile=null;
            FileOutputStream outStream=null;
            Document attDoc=null;
            int i=0;
            Node ndAttach = (Node) patExecContext.getProcessDataValue("/process_data/xmlData/Formdata/FileAttachments");
            NodeList children;
            Node childNode = null;
            if (ndAttach != null) {
                children = ndAttach.getChildNodes();
                if (children != null) {
                    childNode = children.item(i);
                    if (childNode instanceof Element) {
                        System.out.println("tag name: " + ((Element)childNode).getTagName());
                    count = children.getLength();
            for (i = 1; i <= count; i++){
                b64Data = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/FileAttachment[" + i + "]/Base64Data");
                if (b64Data != null && b64Data.length() != 0) {
                    name = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/FileAttachment[" + i + "]/FileName");
                    tempFile = File.createTempFile("Attachment", ".tmp");
                    outStream = new FileOutputStream(tempFile);
                    outStream.write(Base64.decodeBase64(b64Data.getBytes()));
                    outStream.close();
                    attDoc = new Document(tempFile, true);
                    attDoc.setAttribute("basename", name);
                    attDoc.setAttribute("description", patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/FileAttachment[" + i + "]/FileDesc"));
                    attDoc.setAttribute("wsPermission", "1");
                    attachmentMap.put(name, attDoc);
            patExecContext.setProcessDataMapValue("/process_data/mapAttachments", attachmentMap);
            while (ndAttach.hasChildNodes()) {
                ndAttach.removeChild(ndAttach.getLastChild());

  • How to include attachments to the standard PO approval notifications attachments.zip file?

    Hi,
    Oracle EBS 12.0.6 and 12.1.3
    Following the ML Note Adding an Attachments Table Using Personalization [ID 790344.1], I have added an attachments table to the PO Supplier Change Request page. I am able to upload attachments and can see them in the tables. How can I include these attachments in the workflow notifications? When the notifications are received, PO pdf is attached and an attachments.zip file is included with other attachments but not the ones that I have uploaded using the new attachments table.
    To find how Oracle is able to attach files to a single zip file, I searched for "ZIP_ATTACHMENT" keyword in dba_source table and found it is being done in the APPS.PO_COMMUNICATION_PVT.GENERATE_PDF_BUYER package procedure.  Do I have to modify this procedure or is there a less invasive way, which is upgrade proof too?
    Thanks.

    Hi,
    Oracle EBS 12.0.6 and 12.1.3
    Following the ML Note Adding an Attachments Table Using Personalization [ID 790344.1], I have added an attachments table to the PO Supplier Change Request page. I am able to upload attachments and can see them in the tables. How can I include these attachments in the workflow notifications? When the notifications are received, PO pdf is attached and an attachments.zip file is included with other attachments but not the ones that I have uploaded using the new attachments table.
    To find how Oracle is able to attach files to a single zip file, I searched for "ZIP_ATTACHMENT" keyword in dba_source table and found it is being done in the APPS.PO_COMMUNICATION_PVT.GENERATE_PDF_BUYER package procedure.  Do I have to modify this procedure or is there a less invasive way, which is upgrade proof too?
    Thanks.

  • How to include attachments with e-mail and to verify that they have been sent.

    When I try to attach a document or photo to an e-mail and use "browse" to find the attachment, then click it. The only option is open. When I click that there is no evidence or indication that the attachment has been made. How can I attach photos or documents to e-mail messages? Then, how can I verify that the attachments have really been sent with the message?

    * Outgoing (SMTP) server: you need to use your ISP (Internet Service Provider) SMTP server. Call your ISP to know your SMTP (mail sending) server. In case you are unable to get SMTP server, you can use WebMail for email sending.
    For OUTGOING MAIL SERVER I am required to add the following:
    HOST NAME
    (usually looks like smtp.example.com - Since I have Comcast as my it would look like smtp.comcast.net)
    USER NAME optional
    PASSWORDptional
    Since you use comcast, you have comcast e-mail. You need to ask them what the correct settings are to set up your comcast e-mail account on a mobile device and plug in the same information for the outgoing (SMTP) server for the account you're trying to set up.
    Warning: I'll predict now that a lot of your e-mail will get filtered as spam on the receiving end because the domain name in your email address is NOT going to match the domain name of the server it's originating from.
    You might want to look into a mail service provider that actually provides their own outgoing mail servers.

  • How to include attachments when sending PO as email

    Hi!
    I have seen this question in several forums, but no solutions to it, I therefore try to post it as i new question here:
    When I send a PO to a supplier via email the attached files is NOT sent. Does anyone know how to do this? The PO itself it sent successfully without problems, but without the attachement(s). I often need to send attachments together with the PO to the supplier.
    Regards,
    Thor-Egil

    Hello,
    For this, you need to have SAP - DMS (Document management system) configured in your system.
    SAP DMS are for storing documents such as CAD drawings, Materials pictures etc.
    With the document management system, users will be able to view the documents with ease within their SAP systems.
    Installing the SAP DMS requires a little bit of planning on how you want to do it.
    You have to give a little thoughts to stuff such as :-
    1.  The total numbers of documents that will be store monthly.
    2.  The average file size of each documents.
    3.  The capacity of your present R/3 system.
    4.  Your present network bandwidth.
    5.   Document Archiving Strategy.
    6.   Backup and Recovery Plan.
    Additional purchasing of hardware are required, especially if you have large amount of documents to stored.
    With this in mind, you can then decide on how you want to do it.
    You can do this in a few ways :-
    1.  Import the documents into the R/3 system.
    2.  Use an external document server.
    3.  Have a dedicated PCs where all the documents are stored.
    Most companies that intend to used DMS will opt for Option 2 as they does not want to overstretch the R/3 database.
    Options 1 requires you to setup the conversion interface.
    The conversion interface allows R/3 to automatically covert your files and import it into the R/3 database.
    Here is a simple example of storing documents into your PCs, just to have a feel how the SAP DMS works:-
    For those using Citrix, you have to set this at the Citrix Server where the SAPGUI is located.
    Configure SM30 - V_TDWE_C1
    Put this command in your autoexec.bat
    SET HOSTNAME=PC1234
    Restart your pc.
    You can create/manage your documents in transaction code CV01N / CV02N
    Assigning Documents to a Material Master Record
    Access a material master record in Create or Change mode, and select Basic Data.
    To create links to documents, choose Additional data -> Document data.
    The Link to Documents dialog box appears.
    Assign one or more documents to the material.
    If you do not know what the document number is, you can search for it using the search help or by choosing Find document.
    When assigning a document to a material, you have the following options:
    1. Viewing the document by choosing it in the Link to Documents dialog box.
    2. Viewing any originals of the document by positioning the cursor on the document and
      choosing Display originals in the Link to Documents dialog box.
    To return to the Basic Data screen, choose Continue.
    Save your data. 
    Ref: http://www.sap-img.com/sap-dms.htm
    Regards

  • Emails saved as rtf do not include attachments

    I am using Lion 10.7.2 and just noticed that when I try to save an email as rtf, do not saves attachments despite having checked the due box in the 'save as' dialog.
    This problem also happened to me when snow leopard was launched and solved about three months later with a newer mail version.
    Does anyone know is this bug with mail is already fixed? I can't find a newer version of mail than 5.1.
    Thanks

    I checked what you say, I chose a message with pictures. If I open the rtfd text with Nisus, I dan hardly see a part of one picture only. If I open it with TextEdit, I can see the whole message + pictures.
    My find is that Mail.app saves text in frames, so other apps may not correctly read the whole text and the attachment, even if there, are not displayed. TextEdit behaves OK.
    Therefore it is important what app you use to open saved message.
    There may be other attachments, which cannot be of course saved in a document, e.g. a zip archive or so.

  • Email Forwarding including Attachments very slow

    Hi,
    whenever I want to forward an email with an attachment it asks me if I want to include the attachment. If I choose "Include", it takes the iPad forever to generate the email until I can start typing and send the email out
    Any hints, tips or suggestions on how to speed up this process?
    I am using the following device: iPad 3rd Generation as well as iPhone 4S with iOS 5.1 installed.
    Thanks and best regards
    Mike

    Update: After two weeks of scratching my head trying to find any local settings (computer or router) that were specific enough and after really not doing anything at all, normal service resumed suddenly. I have now had a good short week without any disruption or speed issues. The problem that was is still a mystery, though.

  • Including attachments in CCM

    Hi all,
    has anyone ever added attachments to catalogue items in CCM?
    By this I don't mean images but a link to an actual document.
    Any help/advice on this would be greatly appreciated
    Thanks
    Chris

    Hi Mahesh,
    great stuff thanks.
    Out of interest do you know the possible values that go in characteristic /CCM/MIME_TYPE? and what data type /CCM/ATTACHMENT can be used for because it is made up of the same components as /CCM/HYPERLINK
    Regards
    Chris

Maybe you are looking for

  • WS adapter in PI 7.1 Help required

    Hi All, Please explain me and send me some blogs to how to use sender or receiver WS adapter in PI 7.1. I am not able to understand as I have already SOAP adapter the why we need WS adapter. Pls send some blogs Regards

  • First Java Web Start download doesn't update, second time does

    I'm using Java Web Start with our application. This release we upgraded to java 1.5 from 1.4. Now I have a few PCs, not all, that do not get updates the first time they launch the application. But when the launch it the second time they get the downl

  • Can I remove Iwork 06 without problems?

    Never fired it up. Never used it and it's eating 1.2 G + on my machine. I could use the space for something else. It it just a delete thing? Or do I need to dance around some object muttering prayers?

  • Problem when start lightroom 6 on my windows 8.1 notebook

    I have a problem when start lightroom 6 on my windows 8.1 notebook, the system says "impossible find input point in _crtCreateSymbolicLinkW in C:\windows\system32\msvcp110.dll", and lightroom 6 terminate. I disinstalled and reinstalled many times but

  • QT 7.2 working again on G5

    I had the same problem as other with QT crashing when I launched it. I have an Aurora Pipe Pro card installed. The trick is to go into the controls and disable the Interceptor mode. Then it will launch and seems to work OK. -Lars