How to open Word file in APEX, fill it with data from DB and then save it?

Hi everybody!
I haven't enough experience with HTMLDB, I searched for similar thread but didn't find anything, so I decided to write here. I want to open a MS Word document, put some data from a table or report and then close it with saving changes. Could anyone help me to do that, please?
Thanks in advance!

Guys, thanks for being so helpful :-)
I tried this example http://htmldb.oracle.com/pls/otn/f?p=18326:44:::::P44_ID:1682,
but didn't sort out the problem. I downloaded, imported and installed Mail Merge. I readed readme.txt and did everything like it is written, but when I click on "Mail Merge" for emp.rtf, I recieve this in my browser: "You are not authorized to view this page".
By the way, the precedure MAIL_MERGE and the function FIND_RTF_HEADER are valid, cause I changed them according to readme.txt.
Do you have any idea why is this happening and are you sure that Mail Merge works with APEX production version, not only with HTMLDB?

Similar Messages

  • Cannot open Word File because "there are problems with the contents"

    Hi Everyone,
    I cannot open Word File because "there are problems with the contents" unspecified error; Location: 2.  Please help as I need this doc for work meeting this morning.  Nothing special about this doc but links were copied into it???  However I do that all the time.  I have never had this happen before.  I am on a 2010 machine.  I just ran a disk permissions repaired and emptied the trash but still no dice.  I had several other word docs up as well when I got up this morning but they are all fine.  I do not have Time Capsule turned on (which I need to do but that will be another thread/question).
    Thank you,
    sb

    Ok, I found a way to open this but not sure what happened to begin with and the formatting setup is different now, almost like text editor?  Not sure what happened here but hope it doesn't happen again?

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • How to open a file in Version 8.0CS with Version 9.0CC?

    Here is the error message I get.
    "Cannot open "Chapter 2.indd" because it was saved with a newer version of Adobe InDesign (CS.8.0).
    You must use that version or later to open the file.  To then enable it to be opened in this version, choose Save As InDesign CS4 or later, or export to IDML."
    It doesn't make sense.
    Mary

    It means that the person who created the file was using InDesign CC or InDesign CC 2014. They (or someone else who can open the file in those programs) needs to save the file as IDML and send you the IDML file. You can open the IDML file in your version of InDesign.

  • Populate a drop down list with data from Excel and fill in a text field, based on drop down selectio

    Hi!
    I have a problem with a PDF form: There's a drop down list that I populate with Excel data that I've put in an XML file through an XSD file -- no problem here. The drop down list has a data binding to the XML file, so that a choice in the drop down list can be associated with an object in the XML file. So, when I make a choice in the drop down list, a corresponding object value is fetched from the XML file and put in a text field on the form.
    How to do this is described by Stefan Cameron here:
    http://forms.stefcameron.com/2006/07/29/dynamic-properties/
    There's a snag, though, and to describe it more clearly:
    The XML file contains three types of objects: role, role number, and role cost center. Of these I use the first and the third, i.e. the role and the role cost center. The drop down list contains the roles, and when I select a role, the corresponding cost center is filled out in the text field. So far, so good!
    But -- if the cost center has the same value for two or more roles, all of these roles "bounce back" into the drop down list, that is, they are all selected in the drop down list. How many of these you can see depend on the height of the drop down list -- if it's low you'll only see the first one.
    If I modify Stefan Cameron's data in his example I get the same behavior, so the problem seems to have to do with how XML data are fetched.
    I'm sure there's a workaround, but I can't find it! I've spent many hours browsing the web without finding anyone with a similar problem.
    Any suggestions appreciated!

    Although your issue is far beyond mine, I was hoping you can help me out.....
    I need to create a drop down list of names which I wish to somehow link to an Excel spreadsheet.
    Please let me know the steps I need to do.  I've tried several things, but nothing seems to work and I'm not sure what I am doing wrong.
    Thank you

  • How create report with data from table and some columns results function ?

    Hi,
    How can i create on apex report region with some columns (of the report) as returned from a table and the other columns as results of plsql functions ?
    for example , I want to create a report like that:
    device last_date error_msg stop/start
    kodak1 06/04/08 null >>
    kodak2 08/03/08 good msg --^--
    kodak3 08/04/08 err msg >>
    3 rows returned
    where the 3 first columns are data returned from the table and the forth column is the result of plsql function (returned for example false) and on that i want to display a button of start ( >> in this example ) or stop ( --^-- in this example)

    Thomas,
    There is no problem here -- this is fully suported scenario.
    1. Bind Table dataSource to Customers node.
    2. Bind individual cell editors to any attribute of customer or any nested node like Address, say create column with InputField as editor, then for "value" property select Customer.Address.Street.
    Your nested nodes (like Address) must be non-singleton, set singleton=false on context designer tab.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Filling checkboxes with data from database

    Hello.
    I need help setting a checkbox value to checked if the corresponding field has "Yes" saved in the database.
    I can do this with textboxes, but haven't figured out how to do it with checkboxes or drop down lists.
    If you can help, please do.
    Thanks.

    In all honesty, problems like this is why programmers tend to make more money than web developers. :) You more or less need to figure out what you want to happen, and then write the code to make that happen. Let me give you an example...
    Let's say we're building a web site that requires people to register and then log in. When they register, they get a checkbox where they can opt in for spam. We've decided to store the user's preference in a database, essentially a field called spam which contains either a "yes" or a "no" value. When the time comes to send out those emails, we simply select all records in the database where that spam field is set to "yes".
    So far, so good.
    If the user decides to check that opt-in checkbox, then we want to set the spam field to "yes". If he already exists in the database, we can use an SQL update statement to set the field. If he doesn't exist, we'll have to create a record for him and set all relevant fields with an insert statement. If he unchecks the box (or leaves it unchecked), then we want to do the same thing but make sure the spam field is set to "no".
    When the user clicks on the submit button, the checkbox is submitted (or not) to the server as one of the parameters. We simply parse the parameters, see if the checkbox was checked or not, then write a little bit of JSP (or Java) code that sends the appropriate SQL statement as above, to the database.
    That's the basic concept.
    There are many slight variations. For example, several web sites will fill in that opt-in checkbox by default every time you visit their site, and you have to uncheck it if you don't want spam. The logic remains the same - just write a little bit of code that sees if the form passed you the checkbox filled in, and then either fill in, or erase the corresponding field in the database.
    (I'm not bothering to add code here because there are many ways to do this, and which way is best really depends on what code college_amy has written so far.)

  • Fill textBox with data from clipboard

    Hi:
    Here's my trouble.
    I have a formulary with 3 textBoxs. 2 of them are written by the user, but the 3rd must be written with a String that is received from bluetooth and stored in the clipboard (this is no a must, the objetive is to fill the textBox, not to store things in the clipboard).
    How can I do this?
    Thanks for your help!

    No, i already know how to work with the clipboard.
    The point is how to write in the textBox from a desktop app.

  • 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]]

  • How do I create a new library in LR5 with photos from LR3 and older computer?

    I want to take photos I originally imported with LR3 on an older computer and creat a new library in LR5 on my new computer. I want to throw out all old metadata, folder names and keywords and start from scratch. How would I go about this. My photo library is on an external drive. Thanks.

    I guess I hadn't thought about the fact I'd lose my edits. I have just a little experience with LR. I've realized that I did not organize and cateorize my photos in a useful way when I first created the library and want to start over. Perhaps I should just plug my photo drive into my new computer and go through photo by photo resorting them and reentering keywords and folder names. If you have any suggestions on how to best to this, I'd appreciate it. Thanks.

  • Hello! How to make new folders on I pad 2 .download data from net and use it offline also .

    I do not known how to make folders in I pad 2 and use them offline2.i am using this I pad 2 for the first time. I have used windows for years and is quite comfortable with windows

    Just drag one app on top of another. Here's an article about it:
    http://www.macworld.com/article/160291/2011/06/create_organize_ios_folders.html

  • How to open ipa files which we download from istores, how to open ipa files which we download from istores

    Dear Sir,
    I have recently purcased new mac pro but facing following problems, pls assist me:
    1) I have downloded few application from iStore but this are in .ipa files and i dont know how to open this files
    2) Which are good software for photo editing and business planners
    3) where can i get detail information for handling the mac pro.
    waiting for your reply,
    Ramesh Satav
    9890801841
    Email : [email protected]

    1) A .ipa file is an app for IOS (iPhone, iPad..) and will NOT run on Mac OS X. Apps for your Mac can be found for example on the Mac App Store (you can find a link to it in the Apple menu on your menu bar).
    2) I like Aperture and PixelMator
    3) www.apple.com

  • How do you have a long video in the timeline and then save it as separate parts?

    I'm looking to record playthroughs of video games and putting them on youtube. So what I would be doing is recording about 2 hours of footage. I'm trying to find out how to cut that 2  hours of footage up into 10 minute clips, and then save each individual clip as a separate file so I can upload that part onto youtube. If that is hard to understand, sorry, I'm bad at explaining things. But if you understand and know how to do this, please answer. Any help is appreciated. Thanks in advanced!

    I agree that using the WAB (Work Area Bar) for the desired Duration, and then Sharing that, would be the best route. This ARTICLE goes into more detail on the WAB.
    Good luck,
    Hunt

  • Filling dynamic internal table with data from other internal table

    Hi Friends,
    My problem is that i have already built a dynamic internal table
    (class int_table->create) but now i want to fill it with data from other internal table.
    The dynamic table column name and the field value of the data filled internal table are same, but how to access that column name, since i cant hard code it anyway.
    Like if my werks field value is '8001'. I want to place it under the column 8001 of dynamic table, Can anybody help me in this regard?
    Awarding points is not a problem for even giving a slight hint.
    Best Regards

    Hi
    See this
    Dynamic internal table is internal table that we create on the fly with flexible column numbers.
    For sample code, please look at this code tutorial. Hopefully it can help you
    Check this link:
    http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
    Sample code:
    DATA: l_cnt(2) TYPE n,
    l_cnt1(3) TYPE n,
    l_nam(12),
    l_con(18) TYPE c,
    l_con1(18) TYPE c,
    lf_mat TYPE matnr.
    SORT it_bom_expl BY bom_comp bom_mat level.
    CLEAR: l_cnt1, <fs_dyn_wa>.
    Looping the component internal table
    LOOP AT it_bom_expl INTO gf_it_bom_expl.
    CLEAR: l_cnt1.
    AT NEW bom_comp.
    CLEAR: l_cnt, <fs_dyn_wa>, lf_mat.
    For every new bom component the material data is moved to
    temp material table which will be used for assigning the levels
    checking the count
    it_mat_temp[] = it_mat[].
    Component data is been assigned to the field symbol which is checked
    against the field of dynamic internal table and the value of the
    component number is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_comp_list OF STRUCTURE <fs_dyn_wa> TO
    <fs_check>.
    <fs_check> = gf_it_bom_expl-bom_comp.
    ENDAT.
    AT NEW bom_mat.
    CLEAR l_con.
    ENDAT.
    lf_mat = gf_it_bom_expl-bom_mat.
    Looping the temp internal table and looping the dynamic internal table
    *by reading line by line into workarea, the materialxxn is been assigned
    to field symbol which will be checked and used.
    LOOP AT it_mat_temp.
    l_nam = c_mat.
    l_cnt1 = l_cnt1 + 1.
    CONCATENATE l_nam l_cnt1 INTO l_nam.
    LOOP AT <fs_dyn_table2> ASSIGNING <fs_dyn_wa2>.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa2> TO <fs_xy>.
    ENDLOOP.
    IF <fs_xy> = lf_mat.
    CLEAR lf_mat.
    l_con1 = l_con.
    ENDIF.
    Checking whether the material exists for a component and if so it is
    been assigned to the field symbol which is checked against the field
    of dynamic internal table and the level of the component number
    against material is been passed to the dynamic internal table field
    value.
    IF <fs_xy> = gf_it_bom_expl-bom_mat.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    CLEAR l_con.
    MOVE gf_it_bom_expl-level TO l_con.
    CONCATENATE c_val_l l_con INTO l_con.
    CONDENSE l_con NO-GAPS.
    IF l_con1 NE space.
    CONCATENATE l_con1 l_con INTO l_con SEPARATED BY c_comma.
    CLEAR l_con1.
    l_cnt = l_cnt - 1.
    ENDIF.
    <fs_check> = l_con.
    l_cnt = l_cnt + 1.
    ENDIF.
    ENDLOOP.
    AT END OF bom_comp.
    At end of every new bom component the count is moved to the field
    symbol which is checked against the field of dynamic internal table
    and the count is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_count OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    <fs_check> = l_cnt.
    INSERT <fs_dyn_wa> INTO TABLE <fs_dyn_table>.
    ENDAT.
    ENDLOOP.
    Reward if useful
    Anji

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

Maybe you are looking for