Generating Excel/Word Document with PHP/MySQL

Hi all,
I would like to know the best way I could create a Excel/WORD
document that can take the name, address, from my mailing list
table and use mail merge to print envelopes?
Any ideas? Or is there any software than can help me?
Thank you in advance

Luis Godinho Ramos wrote:
> SELECT *
> FROM produtos
> WHERE prod_modelo LIKE %colname% AND prod_funcao LIKE
%colname% AND
> prod_descricao LIKE % colname% AND prod_tags LIKE
%colname%
> ORDER BY prod_modelo ASC
The second example you give is closer, but you need to
enclose the query
fields in quotes and use OR rather than AND...
SELECT * FROM produtos WHERE prod_modelo LIKE '%colname%' OR
prod_funcao
LIKE '%colname%' OR prod_descricao LIKE '%colname%' OR
prod_tags LIKE
'%colname%' ORDER BY prod_modelo ASC
HTH,
Pete.
Peter Connolly
http://www.kpdirection.com
Utah

Similar Messages

  • Cannot search file content on Word document with embedded Excel table

    Cannot search file content on Word document with embedded Excel table. I have Windows 8.1 64-bit and Office 2010 Professional. Only phrases from within Excel tables are not searchable. I have many Word documents with embedded Excel table.
    I use it for my invoices. Those invoices are converted to pdf to be sent via mail. Searching the same phrases in related pdf files Works fine. And yes, folders are indexed, searching service is active......... For example I can find all invoices that have
    specific address or name, which is located in word document, but cannot find invoices with specific item name or price, being that information is in embedded Excel table. (not linked, embedded). I thought that is a question for Windows forum, but guys directed
    me here on Office forum. To clarify, I do not use Ctrl+F inside some document, but Windows Search in my folders. Probably the same happens in Office 2013.
    Thank you.

    Hi, I have a lot of Word documents (invoices, offers). Main part of those documents is embedded Excel file because it is easier to do mathematics in Excel than in Word. There are columns with description, unit price, quantity, taxes... Now, I need
    to find who bought HP switch 2530-24G last year. I open folder with last year invoices and search "2530". Cannot find any. But if that document was converted to pdf for mail, than I can find that phrase. Windows search does not work for content if the content
    is in embedded file.

  • Word document with multiple sections generates multiple pdf?

    Hello everyone,
    I'm a new and happy Mac user, but not fully able to use this. I hope you can help.
    I have a Word document, with multiple sections that I want to convert into pdf. When I used to do this with the PC, I didn't have problems. I used to use Click to Convert and I normally used to get one single pdf file.
    Now, using the pdf button wit the Mac, I get separate pdf files, one for each section. Is there a way that I can create a single pdf, with all the sections in order? If not, how can I merge the pdf in one single pdf file?
    Thanks in advance.

    Hi,
    just to let you know I have sorted this.
    http://macintoshhowto.com/leopard/how-to-merge-pdf-files-with-preview-in-leopard .html
    Thanks.

  • RoboHelp 9 Won't Generate a Word Document

    I'm trying to get RoboHelp 9 to generate a Word Document. It won't genterate and throws out the following message in output view:
    Preparing to create Printed Documentation...
    Clearing output folder...
    Preparing files for Print Document...
    Copying files...
    Updating files...
    Finished preparing in 4 seconds.
    Preparing environment...
    Cleaning up temporary files...
    Internal error encountered,  Failed to generate Printed Documentation.
    This is all I have to go on. I really have no idea where to even start trouble shooting this as there isn't a specific error message.
    Thanks!

    Have you tried generating a word file from a different project? Try it on one of the sample projects. If it works, try to generate from your project but with a limited set of topics. If this works, there must be a topic that is causing the issue. If you add further topics a few at a time until you hit the issue you will be able to identify it.

  • Unable to generate a Word document (RH9 and Office 2010)

    Hello Everybody,
    we have an issue with Robohelp 9 (patched to newest version). We are trying to generate a Word document (doc, docx) in the section of "Printed Documentation". If we click on the printed documentation on the left side (in the menübar), 2 popup windows flashing  to the screen with the following complete message: "False Parameter". I can click on "OK" if i do it, both windows will close and the General Printed Document Page is loading.
    The Problem is that all dropdown fields are blank and we cant chose .doc or .docx. I reinstalled both Programms (TCS and Office) it doesnt help me.
    I have screenshoted and uploaded the blank Print Document General window at tinypic.
    http://tinypic.com/r/t6drnn/5
    Peter Grainge was asking me:
    Also try with one of the sample projects. Click Open on the RoboHelp Starter page and then click Samples in the ribbon on the left. Same problem?
    It doesnt work. (same problem)
    Thx for help
    Greetings Andreas B

    This all points to some sort of installation issue. I notice from the screen you posted that a lot of the fields are completely blank. They shouldn't be. They should have default values. Check that you are installing following Peter's advice at http://www.grainge.org/pages/authoring/installing/installing.htm.
    Colum

  • How do I generate a Word document and a PDF from Help files?

    Hi,
    I am new to RoboHelp HTML, and am using version 8.  I updated some Help files, and now I want to generate output.  Here are my questions/ or the process I used:
    To compile the help, I clicked Generate Primary Layout.  Is this correct?  I noticed that the date stamp on the xpj file has not changed.  The date is still from many months ago.  (Why is that?  Should it show a recent update date?)  However, the files that I updated do reflect the dates when I made the updates.  These include art files, an hhp, and htm, js, ldb, pss, cpd files.
    To generate a pdf, I clicked Generate PDF.  I was not able to generate the PDF at first, but then, I enabled macros in Word 2007 (Trust Center Settings > Enable all macros...and clicked the checkbox, Trust access to the VBA project object model), and clicked Generate PDF.  At the end of the generation, I got this error in Word: Microsoft Office Word has encountered a problem and needs to close.  We are sorry for the inconvenience.  The info you were working on might be lost.  Word can try to recover it for you.  I closed the dialog and Word generated several blank documents.  Microsoft Office Diagnostics was run and found one problem and corrected it.  Despite the error message, a pdf was generated.  (If you could give me any insight on why I got the error messages, that could be helpful to know).
    How do I generate a Word document?
    Thank you!
    Erin

    Welcome to our community
    Note that RoboHelp is capable of creating a variety of layouts. WebHelp, FlashHelp, AIR Help, Microsoft HTML Help, JavaHelp, Oracle Help, ePub and more.
    Any of these layouts may be nominated as the Primary layout. So when you generate the Primary layout, you get whatever has been configured as the Primary layout.
    Only certain actions will result in a change to the .XPJ file. The actions are indicative of major changes to the project. So I wouldn't fret the fact that the date time stamp wasn't updated.
    Indeed the Printed Documentation Single Source Layout recipe is what you use to create PDF. Generally what happens is that RoboHelp creates a Microsoft Word document as an intermediate file type, then creates the PDF from that. As you might imagine, there are a host of things that can go wrong during the process. I might suggest that you first get a Word document to generate cleanly. Then once you do that, focus on PDF. I know that I typically gen a Word document and stop there. I just open Word and use Word to create the PDF.
    If you look at the properties for the Printed Documentation Single Source Layout recipe (View > Pods > Single Source Layouts then right-click the Printed Documentation layout and choose Properties) you will see that PDF, Word or both are options at the top of the dialog.
    Hopefully that gives you a nudge in the right direction.
    My fellow Adobe Community Expert Peter Grainge has excellent info on Printed Documentation on his site at Grainge.org. Click the link below for that.
    Click here to visit Peter's site
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Create a word document with TOC, table,etc

    Hi,
    How to create a word document with Table of content(TOC),header, footer, table, etc?
    Help me with any APIs or examples. I have already tried with POI API, but couldnt create TOC.. So any other api or any solution is available to create complex word document.
    Thank you

    Hi BIJ001,
    Thanks for your valuable suggestion.
    Open standards WordprocessingML format is supports by Microsoft word. It is typical xml format of designing word document. But creating document with TOC,tables, different styles of paragraphs are complex. Using this format, i have created simple docs. I never tried with complex formats like TOC. The generating File should be in ".doc or .docx" format only.
    Hi gimbal2,
    I am parallely looking to find solution in OpenOffice format also. But i never try out ".docx" file format. I will try to look out this option.
    Thanks for the input.
    Edited by: user13735134 on May 24, 2011 6:55 AM

  • Acrobat Pro XI Will Not Print Word Document with a Rotated Table

    I have a MS Word document that is mostly text, but include a table that has been rotated in a text box to fit on the page.  When I try to print to PDF using Acrobat Pro XI, the document crashes at the page the table is on.
    I have tried several attempts to print using the Acrobat Printer, convert to PDF feature and trying to print just the page alone.  Acrobat will simply not print word document with a rotated table.
    Any idea how to fix this?
    Word 2013, Windows 7, Acrobat Pro XI 11.0.06

    In the full document, the print to PDF goes only as far as the table, then ends - not printing the table.  The remaining pages are not printed.
    For example, I have trimmed the file down to just the table page, and included links to it, and a copy of the PDF it generated.
    https://dl.dropboxusercontent.com/u/60543835/Forums/Table%20Sample_140903.docx
    https://dl.dropboxusercontent.com/u/60543835/Forums/Table%20Sample_140903.pdf
    The error message I now get when I try to print is: "There is not enough memory or disk space to repaginate or print this document."
    However, with the Task manager open, the memory never seems to get above half of the available (the graph bar fluctuates a little, but stays stable")
    The page prints to a regular HP or Xerox printer with no problems. 

  • Generate a Word Document

    Hi,
    I want to generate a Word document and populate it with some values taken from my JAVA application.
    Have you got any ideas on how to do this ?
    Thanks a lot.

    Yeh, sure!
    Here are two methods that create and write a .txt file, or anything for that matter.
    call them by using:
    writeToFile("Hello World", "file.txt")If the file "file.txt" doesn't exist, it will be created by makeFile();
    Hope this is of some help.
    public void writeToFile(String text, String fileName) {
              File thisFile = new File(fileName);
              if(!thisFile.exists()) makeFile(fileName);// If the file doesn't exist, makeFile will be called
              try {
                   FileOutputStream fos = new FileOutputStream(fileName);
                   byte data[] = text.getBytes();
                   fos.write(data);
                   fos.close();
              } catch (IOException e) {
                   System.out.println("Error while writing to File.  ");
         public void makeFile(String fileName) {
              File file = new File(fileName);
              try {
                   file.createNewFile();
              catch(IOException e) {
                   System.out.println("ERROR while creating file.  ");
         }I'm not being rude or anything, but could I get some Duke Dollars for this - it's just that I'm running a bit low and have just spent quite a bit of time on this. But if you can't, it's cool, I understand.
    Thanks
    izy_t

  • Word document with picture JPEG

    When I save a word document with a JPEG picture inserted to PDF the picture appears gray?

    Hi Martin,
    Are you viewing that PDF in Adobe Reader or Acrobat (and what version)?
    It sounds like you may have an option selected in the preferences that causes large images to appear as gray boxes. Please try this:
    Choose Edit > Preferences (Windows) or Acrobat/Reader > Preferences (Mac OS).
    Click the Page Display category on the left.
    Select Show Large Images, and then click OK.
    Did that do the trick?
    Best,
    Sara

  • Opening Word documents with Appleworks

    I often receive Word documents as email attachments (though my hotmail account). I can download these Word documents to my desktop but when I click on them to open them I get an offer to purchase MS Word (which I do not have). I would like to be able to simply open the Word documents with Apple works--and I am hoping I can just click on them and have that happen automatically. But it doesn't. I have tried opening Appleworks and going into the wordprocessing program and then opening the Word document through that, but it only is successful part of the time. What can I do? I would like to have these Word douments open automatically in Appleworks but every time I click on them (i.e., their icon on my desktop) I get that advertisement from Microsoft asking me to buy Word. Is this ad blocking a normal function of Appleworks that would otherwise allow me to open Word documents with a click? And in any case, how can I proceed?

    The ad for Word is almost certainly being tacked on through or at Hotmail (taglines or adware from Hotmail? Hoodathunk .....) ; it sure isn't coming from AppleWorks or from anything on your own system, unless you have that demo copy of Office still lurking somewhere. I suppose it could come from that, somehow.
    Assuming you can get a clean attachment downloaded to your Desktop from Hotmail, the procedure for having what you want to happen automatically is fairly straightforward and, really, has nothing at all to do with Appleworks. Try the following:
    --> Select (highlight) one of those downloaded .doc files from Word, then
    --> use the Finder's Get Info command (⌘-I). In the window which appears,
    --> see the "Open with" section, and set it to AppleWorks.

  • Create Word document with Java

    I want to create a Word Document with Java. But I don't know how can I insert text in a Word document.

    I searched and found JXWord (probably limited to Windows): http://www.geocities.com/picmapicma/
    I'm interrested to know if it works fine...:)

  • Merging word document with pdf file how do you renumber pages?

    After merging a word document with pdf file, how do you renumber pages?  The pdf has more pages than the word document.  I first converted the word document to a pdf, using Acrobat Standard 9.

    Hi Petek ,
    After you merge the files or combine files ,click on the Page Thumbnails panel on the left hand side.
    In the Page Thumbnail panel ,right click and you will get a drop down list .Select the option "Number Pages".
    You will see a dialog box with several options .You can renumber the pages from there as per your requirement.
    Regards
    Sukrit Dhingra

  • Convert 1 single microsoft word document with section breaks to multiple pdf files

    I am a windows 7 users. I have a single microsoft word document which contain 1500 pages. These 1500 pages are seperated by sections breaks in the microsoft word. I am trying to convert this word document to multiple pdf files seperated by the section breaks in the Microsoft word. How can I convert the single microsoft word document with section breaks to multiple seperate pdf files?

    Acrobat (Adobe PDF Printer and PDFMaker ) doesn't recognize the Section breaks.  It never has as far as I am aware.  The easiest thing to do is to manually break up a copy of the MS Word Document into the Sections you need and then create the PDFs from those MS Word documents.

  • Reading and displaying Ms.Word document with web dynpro java

    Hi,
    I'm using NetWever developer studio 7..0.21.
    I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible?
    If possible , is there a blog etc.?
    Thanks.

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

Maybe you are looking for

  • Urgent! Need help in deciding data structure to use

    Hi all, I need to implement a restaurant system by which a customer can make a reservation. I was wondering whether vector would be able to be store such an object, The thing is I don't want a complex data structure. just sumthin simple cos i hardly

  • Preview crashes every time I open a file

    After installing snow leopard in my MacBook Air and MacBook Pro, every time I try to look to a file that comes attached to an email, preview opens it and it is blank, when I click "show sidebar" preview quits unexpectedly, I have to reopen it and onl

  • Music videos & tv shows

    I have been trying to sort my videos out on my touch. In itunes I sorted them all out and named them, clicked on the video tab in info and labelled them either 'music video' or 'tv show' (I don't have any films yet). My videos were then disappeared f

  • Convert PDF Image to Word Doc

    I am having trouble converting PDFs with images. The wording shows, but the images show distorted and jumbled. I have also tried turning off the OCR and that only gives me all black pages. The whole point in purchasing this was to convert my PDFs wit

  • Upgrade from Final Cut 6.6 to 7

    I have upgraded my operating system to Mavericks and find that Final Cut is running renders very slowly.  Is Final Cut 7 an upgrade or does one have to buy the whole package? Is it likely that Mavericks doesn't operate well with older programs? Any i