Table data in html from word doc

I have a nice looking invoice word doc I would like to use to make a apex report. The word doc has a table with all the numeric data for the invoice, pretty simple. I saved the word doc as html and used a program to strip all the excess html. I put the html into a apex report as a html region and it looks perfect. What is the best way to get SQL data into the html table in the region.
Do I have to create a SQL region and then put the html data into the header and footer, am I missing something simple?
Thanks

794181,
I'd take the HTML and use it as the framework for a named column template. This will allow you to put the data from your query in to the exact spots it needs to go.
To make a named column template, go to shared components, templates, create, report; for "Template Type:", select "Named Column (row template)".
Named column templates are fairly easy to set up, but that also seems to mean that it's hard to find documentation for them. Basically, define your query, and then use #<COLUMN_NAME># in your HTML, replacing <COLUMN_NAME> with the actual names of the columns from your query.
Oh, and generally, you won't want to set up a column heading template in your named column template--I almost always just fill in Row Template 1, Before Rows, and After Rows.
-David

Similar Messages

  • Remove Header and footer from Word Docs

    Is it possible to remove the header/footer from Word docs?
    The html output from ctx_doc.markup gets the header/footer and (specialy)page numbers all messed up.
    []'s
    thanks

    Please define 'messed up'. I'll reproduce here and then try to find a cause/solution. I checked a couple of other forums and Metalink with no good discussion on the topic.
    -Ron

  • How to fix the size of table data in html

    I want to fix the size of table data in html. ie if i want to insert only 50 char in a <td> field then it contain only 50 character, after that it switched to another line and contain the remaining character. Means <td> field wil not get automatically adjust there size according to data.

    you cant specify how many characters a td cell can have but u can specify the pixel width of a td cell
    <td width=50>
    as long as you have wrap text on, then text will not force the box size over the 50 pixels
    this wont limit it to only 50 chars though, you will probably have to use some javascript to cut the string down to size (unless youre using something like php or asp then that will do the trick too)

  • Hidden formatting held over from Word doc conversion

    Our company is shifting our product manuals from Word docs to InDesign.  I'm a newbie to InDesign, and I have just converted my first attempt using File>Place.  This was a moderate size file (15MB), with a lot of embedded images, diagrams, and formatting.  Although some of the text formatting didn't convert properly, the clean up has been easy.  The biggest issues I've found are residual page and section breaks that needed to be manually removed from my text frames.
    My boss, however, is hesitant and concerned that there might be some "hidden" formatting that carried over from Word that will ultimately undo all my progress and wreck havoc with the new ID document when we least expect it.  Is there anything I should be looking for in particular?

    ML,
    This topic was just discussed at InDesignSecrets.com in the last two podcasts.
    Go to:http://indesignsecrets.com/category/podcasts
    You will find out almost everything you want to know about importing Word files. Especailly check out the part on "Maggy-ing" the Word file, this might be what your boss was concerned with.

  • Data in report to word doc

    Hi all,
    I get only one field data(ie frm MANDT) from report to Word doc.
    How can i get the record of a table.
    REPORT  ZMGC_INT.
    INCLUDE OLE2INCL.
    DATA P_FWOR LIKE RLGRAP-FILENAME.
    DATA I_BUFFER TYPE .
    PERFORM LANZA_WORD.
    FORM LANZA_WORD.
    DATA: WORDAPP TYPE OLE2_OBJECT,
    DOCUMENT TYPE OLE2_OBJECT,
    SELECTION TYPE OLE2_OBJECT.
    Copia el contenido del buffer en el portapeles
                   CALL FUNCTION 'ZCLPB_EXPORT'
                     TABLES
                       DATA_TAB         = I_BUFFER
                     EXCEPTIONS
                       CLPB_ERROR       = 1
                       OTHERS           = 2.
                   IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                   ENDIF.
    Abre Word
    CREATE OBJECT WORDAPP 'word.application'.
    IF SY-SUBRC NE 0.
    MESSAGE E398(00) WITH 'No se ha podido abrir el Word'.
    ENDIF.
    Lo pone en visible
    SET PROPERTY OF WORDAPP 'Visible' = 1.
    Cogemes el objeto documento
    CALL METHOD OF WORDAPP 'Documents' = DOCUMENT.
    Abrimos el fichero plantilla
    IF P_FWOR IS INITIAL.
    CALL METHOD OF DOCUMENT 'Add'.
    ELSE.
    CALL METHOD OF DOCUMENT 'Open' EXPORTING #1 = P_FWOR.
    IF SY-SUBRC NE 0.
    MESSAGE E398(00) WITH 'Error al leer el fichero plantilla'.
    ENDIF.
    ENDIF.
    Coge el objeto selección
    CALL METHOD OF WORDAPP 'Selection' = SELECTION.
    Pega el contenido del portapapeles
    CALL METHOD OF SELECTION 'Paste'.
    IF SY-SUBRC NE 0.
    WRITE 'PASTE'.
    ENDIF.
    Graba el fichero
    CALL METHOD OF WORDAPP 'ActiveDocument' = DOCUMENT.
    *CALL METHOD OF DOCUMENT 'SaveAs' EXPORTING #1 = P_FWOR.
    *IF SY-SUBRC NE 0.
    *MESSAGE E398(00) WITH 'Error al grabar el nuevo documento'.
    *ENDIF.
    Cierra Word
    CALL METHOD OF WORDAPP 'Quit'.
    IF SY-SUBRC NE 0.
    MESSAGE E398(00) WITH 'Error al cerrar Word'.
    ENDIF.
    ENDFORM. " LANZA_WORD

    Ranjith,
      Go to tcode SE83 -
    >CONTROLS---->BASICS----->Desktop Office Integration.
    Right side  examples .You will find the required code.
    Pls. Mark if useful

  • From Word DOC to Acrobat PDF... borders and lines get screwed up.

    I've been looking this up for days now and have yet to find a solution.
    I have a MS Word document that has a bunch of tables with borders and sometimes just text with borders for stylistic reasons. In Word, it all looks perfect.
    But, when I convert it to PDF using Acrobat, many of those borders get screwed up in various random ways.
    Sometimes certain borders get thicker, sometimes thinner, sometimes invisible altogether. Sometimes it's only certain lines of the same border (just the left side, or just the top). I see no real pattern to what's causing it to only happen in certain cases only.
    What makes it extra annoying is that if I zoom in or out a certain amount, the borders will look the way they are supposed to look. Some will look perfect at 100% zoom only, and some will look perfect at 75% zoom only.
    This has been driving me insane. Does anyone have any idea how I can fix this?
    Any help would be greatly appreciated.

    Converting Word (table) to pdf - lines screwed up - googled as far back as 2004.
    BUG STILL exists. HELP/FIX PLEASE?
    http://www.pcreview.co.uk/forums/missing-table-lines-conversion-pdf-t878406.html
    http://forums.adobe.com/thread/305508 
    Trying to convert any word doc with tables (& shading) to PDF
    - basic table, black borders throughout
    - shaded headings, black outline border
    - shaded subheadings, black outline border 
    However when convert to PDF:
    - 'displays' NO top cell border for some/all shaded rows
    - shows diff thickness lines
    - each conversion, diff lines missing/incorrectly sized
    - however converted pdf prints perfectly fine 
    Adobe know about the bug, per PRMW's (Paul's) post on 2009-07-15 15:44:34, however only offered a painful time consuming workaround using non-freeware Adobe Pro:
    http://acrobatusers.com/forum/pdf-creation/word-pdf-table-lines-missing-or-faded#comment-7 8139
    - "It is not feasable to edit 200+ tables in the PDF every time the PDF is generated, as we maintain the original in word.
    - "This complete issue seems to have been passed off by Adobe as no problem and that there is a work around. I consider this an unsatisfactory response from a major product supplier. 
    Microsoft TechNet & NitroPdf said it's an Adobe issue & to contact Adobe to fix the bug. 
    Tried, but proble exists:
    * Word 2010 > File  > Save & Send > Create PDF/XPS Document
    * Word 2010 > Save As > Pdf
    * Word 2010 > Print > PrimoPdf  (even tried properties > advanced > dpi 300/600/2400) > Custom
    * Word 2010 > Print > doPDF v7  (even tried 'high quality images)
    * Word 2010 > Print > PDFCreator
    * Word 2010 > Print > CutePdf Writer      (even worse)
    * Nitro Pdf Reader  > Convert From File > (even worse)
    * www.pdfonline.com > Word to Pdf         (even worse)
    * www.wordtopdf.com > email: Sorry, an unexpected conversion failure occurred when converting your file. 
    Software:
    * Word 2010 - tried with .docx & .doc (97 to 2003)
    * Adobe Reader 8.2.6 (freeware), then upgraded to Adobe Reader X 10.0.1 (freeware)
    * GhostScript 9.01 w32 (freeware)
    * CutePdf Writer (freeware)
    * PrimoPdf (freeware)
    * Nitro Pdf Reader 1.4.0.11 (freeware)
    * doPDF 7.2.361 (freeware)
    * PDFCreator 1.2.0 (opensource - www.pdfforge.org) 
    Seems to display better at 300%, but lines still not right (even at 2400%), but who views pdf's at this zoom?
    Message was edited by: shell_l_d

  • Question re Create PDF from Word doc

    Hi
    I am trying to create a pdf from a Word document (Word 2007, Acrobat 8 Professional), and am having lots of trouble with images,fonts and document overhead. With the fonts, i generate the PDF by saying Create Pdf from the plugin in Word. I specify in the Preferences that fonts are not to be embedded. I then open the PDF and access PDF Optimiser -> Audit Space Usage, and it says that fonts take up like 20% of the document, however there are only like 10 lines of text in Arial (9pt), and 6 titles also in Arial (Bold). I dont understand why Font is taking up so much space considering that i have elected not to embed fonts (if i go to the Fonts section in the Optimiser, it shows both embedded and unembedded panes blank).
    With the images, i have 2 jpegs in the footer, that are compressed (JPEG -> Low). The other thing i am struggling with is the headers and footers, if i generate the PDF from the Word doc with Headers/Footers, then images take up over 15% of the document. Not sure if there is a way to add headers and footers within minimum impact of filesize? I have tried checking everything in the 3 categories of Dicard Objects, Discard User data and Clean Up. but the Document Overhead remains at 35%.
    What else can i do to get these filesizes reduced?I have been researching this for days and have not come across anything that has helped.I have tried to PDF print, i have changed the font to like Courier, ensured no thumbnails or bookmarks, ensured JPEGs are not embedded in the doc, tried Save As, Save As under a different filename - basically anthing you can find on the net i have found and tried, but still cant fix this!!!! please, if anyone knows acrobate 8 better than me / or knows what the problem is, please advise????
    Thanks very much.

    The colors and size in a graphic needs to be done in a graphics editor. What type of editor would depend on the use of vector graphics versus bitmap. Sometimes vector graphics are larger than bitmaps if you are using a lot of lines that would display better as just a splotch of color. Such are the variations between vector and bitmap graphics, but important if you are looking for size reduction. For a bitmap, I would do the sizing and color depth with IrfanView, but you should be able to do that with PhotoShop if you have it. Vector graphics can be adjusted in Illustrator. The size of vector graphics is not an issue since they are scalable, but the size of a bitmap is important since your are looking at individual pixels and that depends on size. The point is that if you can adjust the color depth and size for the desired pixel resolution, the bitmap is optimized for the conversion to PDF from WORD.
    As I mentioned, the smallest file size job options should minimize font storage in the PDF. Checking with the PDF Optimizer does not always give you all of the fonts. I am not sure why. It is better to check the font tab in the document properties to see what has been embedded. There is a preflight macro to embed fonts, you might check to see if there is one to delete fonts (I have not checked on that). Sometimes you can play with the reprint of a PDF, but that is not an option that is generally recommended, particularly if you have any tagging or such. Of course, tagging can really bloat a PDF, but is needed for a variety of reasons such as format for saving back to WORD (not a great workflow), accessability, and related issues. In another topic, there is some discussion of the purposes of tagging and bookmarks. However, the tags and bookmarks take space if that is really an issue for you. The latter are avoided if you use the print to the Adobe PDF printer and do not use PDF Maker in the PDF creation process. Again, there is a trade-off here in terms of size and functionality, particularly accessibility compliance.
    Not sure I am helping as I run on, but sort what might be useful for you.

  • How to create pdf from word doc file

    HI
    I have a word doc file. (not docx). I have adobe 8 pro. I wrote a word script to create the file using the distiller. The fonts in the pdf file it makes look wacky. That script looks liek this:
    * create archive pdf file
    lfilename = "t:\cardeals\pdf\pdf_archive\" + PADL(alltrim(STR(month(date()))),2,"0") + PADL(alltrim(STR(DAY(DATE()))),2,"0") + SUBSTR(ALLTRIM(STR(YEAR(DATE()))),3,2) + "1.pdf"
    oWord = createOBJECT("Word.Application")
    oWord.DisplayAlerts = .f.
    oWord.documents.open('t:\cardeals\cardeals.doc')
    oword.ActivePrinter = "\\CSSSERVERONE\Overflow"
    oword.application.printout(,,,,,,,4,,,,,,,,,,,)
    oWord.PrintOut(.F.,.F.,,"c:\output.ps",,,,,,.F.)
    oPDF = CREATEOBJECT ( "PDFDistiller.PDFDistiller.1" )
    oPDF.FileToPDF("c:\output.ps", "&lfilename.", "High Quality" )
    oWord.application.quit
    release oword
    I also wrote a script to attempt to print it from the Adobe printer. It seems to work, but when I go to open the created pdf file it I get the following message:
    Acrobat could not open mypdf.pdf because it is either not a supported file type or because the file has been damaged.
    The code was this:
      Set oWordApp = CreateObject("Word.Application")
        Set oDocument = CreateObject("Word.Document")
        oWordApp.Visible = True
        oWordApp.Application.WindowState = wdWindowStateMinimize
        Set oDocument = oWordApp.Documents.Open("t:\cardeals\cardeals.doc")
        strOutputPDFName = "c:\mypdf.pdf"
        holdprtrdefault = oWordApp.ActivePrinter
        oWordApp.ActivePrinter = "Adobe PDF"
        oWordApp.Application.PrintOut FileName:="t:\cardeals\cardeals.doc", _
            Copies:=1, _
            Range:=wdPrintAllDocument, _
            Item:=wdPrintDocumentContent, _
            Pages:="", _
            PageType:=wdPrintAllPages, _
            Collate:=True, _
            Background:=False, _
            PrinttoFile:=False, _
            OutputFileName:=strOutputPDFName
    If I clkick on the PDFMaker icon iside word, the resultant file is BEAUTIFUL. Can I automate this from within word? If not, does PDFMaker have a command line utility that I could put in a batch file?

    I don't have an answer, but you might get a better response in the scripting forum.

  • Windows 7, Office 2007, Adobe Acrobat cs3 - will not create a .pdf from word doc

    I can not create a .PDF file from a 2007 word.docx file.  I have tried a few different word docs, including a document I created just to trouble shoot with.
    I tried opening the .docx in Word and then going PRINT - ADOBE PDF.  When I do this 'nothing' happens. No dialogue box opens, nada.
    When I open Adobe Acrobat and try to 'create' I get this error: "Adobe acrobat could not open"name.docx" because it is not a supported file type or because the file has been damaged...".
    New Dell, Windows 2007, Adobe Acrobate pro 8 from CS3,  Word 2007. 

    Something to check.
    Help > About Adobe Acrobat...
    See what dot version is in place.
    Support for Office 2007 applications began with Acrobat 8.1; so, you want that or better.
    As to Windows 7 —  some Adobe information:
    --| Installing and using Windows 7 with Adobe Creative Suite applications
    http://kb2.adobe.com/cps/508/cpsid_50853.html
    --| Adobe product operating system compatibility
    http://www.adobe.com/support/OScompatibility.html
    --| Adobe Reader/Acrobat – Windows 7 FAQ
    http://www.adobe.com/products/acrobat/faq/
    From the FAQ page.
    --| Adobe supports Windows 7 with Adobe Reader/Acrobat 9; specifically, this starts with the 9.2 dot release.
    --| Adobe does not support Acrobat 8, Adobe Reader 8 or prior versions on Windows 7
         and does not plan to release updates to those versions for Windows 7 compatibility.
    Be well...

  • How to handle weird characters in form fields (like bullet points from Word docs)

    hi there
    lots of my users copy and paste from MS Word documents into a
    text area
    my app takes that form.textarea data and inserts it in a
    MYSQL db.
    when we output that cell from the db, we often find there are
    ? [question marks] where there once were special characters in the
    Word doc text.
    it seems that bullet points in word docs are the worst
    offenders.
    each time i spot a new one i try to find out the chr() number
    for it and make a substitiution before the text is stored in the
    db, but its a bit hit and miss (relies on me spotting it) and its v
    time consuming
    ive tried using functions safetext and demoronize - but they
    dont seem to do what i need
    im sure im not the first person to run into this - any
    suggestions anyone?
    thanks very much indeed for any help you can give.
    kind regards
    Nick

    Thanks Paul and Azadi
    Paul - when you say "change it to unicode" do you mean the
    page or a setting in the db? forgive me if i'm being stupid but
    this is all new territory to me. Thank you ever so much for your
    help - does sound logical what you say :)
    Azadi - thanks very much for this (I'm pressuming that
    there's a charge for this udf) so i'll try to implement Paul's
    solution and if I can't do that I'll buy the the udf - thanks very
    much indeed for your help, really is much apprecaited.
    kind regards
    Nick

  • Images not importing from Word doc

    SORRY MODS - Accidently posted this in the HTML Help forum
    I'm having trouble getting my images placed in a Word
    document to import ito my project. I have RoboHelp 2002 and first
    experienced the problem there, thought I'd try the upgrade to see
    if that fixes the problem. It did fix my step numbering problems
    (all steps were numbered Step 1), but the image import problem
    remains. The images are .jpg images and most were placed in Word
    using Insert Image. Some were just copied and pasted. Regardess of
    how the images were included in the doc, none come through in an
    import. Am I doing somethig wrong? I've tried importing it as a
    Word 2000 and a Word 2003 doc with no luck.
    Thanks in advance for any advice!
    Mike

    I had the same issue and could get no good advice on how to
    fix it. What I finally did was take the embedded images from the
    Word doc and save them in another location. I then inserted them
    back into RoboHelp after I imported the Word doc. It's a little
    tedious, but it worked.

  • Acrobat 9 Pro PDF is not retaining original page settings from Word doc

    The document I am trying to put into PDF format (from Word 2000, using Acrobat 9 Pro (trial version)) drops my original Word page settings (5.5" x 8.5") and defaults to 8.5" x 11" in the PDF.  Using "Crop Pages" does not remedy the situation - the doc just stays at the larger size in Acrobat/PDF. Can anyone tell me what I might be doing wrong?

    Change the paper size in the printer properties before creating the PDF. This is the same as putting the proper paper in a physical printer.

  • Strange bug: Acrobat 9 deletes words upon conversion from Word doc

    Situation: converting from MS Word 2007 (SP2) to Acrobat 9 Standard (v 9.2.0) in WinXP.
    I've tried this repeatedly. The first word in multiple headings disappear when converted to PDF (they remain in the Word doc, but don't exist in the PDF that was produced from the doc).
    Example: "Correlation Analysis" becomes " Analysis".  This is happening to the text of every "Heading 2" style heading. All the other headings are unaffected.  Does anyone know why this is happening?
    This is insidious because we assume that the finished doc matches the original one. So now I have to also proof the Adobe conversion for unexpected deleted words?
    In the meatime, I'll return to Adobe 8 to do these conversions.

    I see a similar problem being reported in this posting:
    http://forums.adobe.com/message/2370280
    No resolution there either.
    Regarding your suspicion that it may be related to Word, what contradicts that is the fact that the full text of the header appears in the resulting PDF bookmark!!  However, the first word of the text is missing from the heading in the PDF (though it remains in the source Word doc).
    Also, I am NOT referring to the page header or footer.  I'm referring the text heading in the body of the document. In my case, only the "Header 2" styled headings are affected.

  • Can't create pdf. from word doc when edited photos are included

    Or for that matter, from any photo which has been imported from my camera through lightroon, which happens everytime I  download shots to my harddrive. I create .pdf tutorials which include process shots and text; whnever I include shots which have come through lightroom, I get an error message telling me that the flies in question are in use with another application. There must be a workaround for this, right? Why can't an edited photo be included into a word doc and then converted to a pdf?

    You must have a program open with the image file or you would not get this message.
    I just did a test run. It works perfectly with my images. I tried it with a JPG and I tried it with a TIFF.
    Word imported them into the document and exported the document to PDF.
    The TIFFs  were created in Lr by exporting, and they are in the Lr catalog. So Lr is not the culprit for you rproblem.
    What I sometimes forget when I edit / change a Word document is that a PDF already created has to be closed. When I don't like my PDF and just go back to Word, do some changes and export again to the same PDF, i.e. overwriting the existing PDF, then the PDF cannot be created. The PDF that needs changing must be closed before another export can happen.

  • How do I save formatting from Word docs to pages?

    Hi
    Often when I open a word document in Pages I get a document warning pop up box.  Often I find that basic things from the Word doc have been changed.  For example, things that were in Bold text in the Word doc are no longer in Bold in the Pages file.  How do I prevent this from happening as the document moves back and forth between myself ( a Pages user) and a clien (who has Word)?

    Hello
    As far as I know, Word create faux-style when a bold or an italic version of a font isn't available.
    In such case, bold or italic will be dropped in Pages.
    From my point of view it's a good choice but it may hurt some users.
    Yvan KOENIG (VALLAURIS, France) lundi 13 juin 2011 16:18:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for

  • How to remove one user from SSO in ESS

    Hello Team, We  have configured ESS with sso and working fine but onw user wants to remove his user id from sso as he shares his pc with others too. Please let me know can this be done and how? Best Regards, Tushar.

  • JVM fails to initialize

    Hi, We have an app that has been deployed for a while absolutely fine. Today users are reporting that they get the message "Could not initialize Java virtual machine. Program will exit". Has anyone any idea what might cause this? Thanks Simon

  • Foreign trade: VI95 Office of exit and export customs office

    In transaction VI95, does anyone now in what SAP reports, forms , and documents the data in field "Office of exit' and "export customs office" appears?

  • Loss of sound whilst watching youtube

    Hi i have lost my sound whilst watching youtube. the sound gradually decreased to nothing.  but i'm able to listen to my iTunes. i have already repaired permission in the utility and cleaned my cache. but no joy. wondered if any one can help me thank

  • Conversion from dynamic to double bit data

    This might be very simple but I've got confused. I have current data and average data as in code. I want to build array using this data, save it on my hard-disk and open in word with headers(current and average) Problems: I input data from both sourc