01hanstu Posted September 20, 2011 Posted September 20, 2011 Hi, I have a word document on the intranet, what is a template. I want to be able to add merge data from the mySql database so when the user selects the name from the drop down box and selects go it will fill in the associated data onto the word document and show on the screen where they can save it, print it ... Any pointers, please let me know, Stuart
localzuk Posted September 20, 2011 Posted September 20, 2011 You're not going to have much luck editing a word document in php. Your better option is to recreate the 'template' as simple HTML, and fill in the blanks using php that way.
01hanstu Posted September 20, 2011 Author Posted September 20, 2011 Thanks for the reply. The issue I have with that is that the BG image is not showing up when printing
localzuk Posted September 20, 2011 Posted September 20, 2011 Thanks for the reply. The issue I have with that is that the BG image is not showing up when printing Background images never print from websites basically, as they are disabled in the print properties of most browsers. There is no way to force background images to print, but you could be clever and use layered DIVs instead - put an image in a DIV, then create a second DIV on top of it with the same dimensions with your text in. That way, the image is treated as a content image rather than a background image. Why do you need a background image printing btw?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now