Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to write html code in php to generate document

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to write html code(table with only left and right border) in php to generate document which should work both in ms word and open office word processor?
Can anyone help?

Thanks
 
Ranch Hand
Posts: 71
PHP Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure exactly what you are asking.

a) Do you have a document and you want to generate a HTML page that lets a user download that document?

or

b) Or do you want to generate a document from scratch?

Also, the part about a table with borders really confuses me, how does that relate to your question?
 
Shalini Prabhakar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I know how to create a document but I need to generate a document with table that has only right and left borders through PHP......I played with this scenario in many ways......... some worked in open office word processor but not in ms word or vice versa.....I need a document which should work in both.......

Now did you got my question??


Thanks
 
Nick Charles
Ranch Hand
Posts: 71
PHP Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I understand now. You are doing option (b) and have it working for the most part. But you can't get that specific type of table to work the same in both Word and Write. This seems to be more of a question on document formats that on PHP so I won't be much help.

By the way, what document type are you generating? .doc? .docx? .odt? Rich Text Format?

Are you using some library to create the document? If so, which library?

The more information you provide the more likely that someone can help.
 
Shalini Prabhakar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am generating a .doc document type

No, i am not using any library.Just i am using simple html tag....

Thanks
 
Whatever you say buddy! And I believe this tiny ad too:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic