GeeCON Prague 2014*
The moose likes PHP and the fly likes How to write html code in php to generate document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » PHP
Bookmark "How to write html code in php to generate document" Watch "How to write html code in php to generate document" New topic
Author

How to write html code in php to generate document

Shalini Prabhakar
Greenhorn

Joined: May 31, 2012
Posts: 8
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
Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

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

Joined: May 31, 2012
Posts: 8
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

Joined: Oct 09, 2011
Posts: 71

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

Joined: May 31, 2012
Posts: 8
Hi,

I am generating a .doc document type

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

Thanks
 
GeeCON Prague 2014
 
subject: How to write html code in php to generate document