Jump to content

Defining a file with headers


lemmin

Recommended Posts

I want to name a file with .html with text/html content in it, but have it open with Microsoft Excel. Since I don't think this is possible, I will explain further what I am trying to do:

 

I want to print (physically) a table with a specific format including coloring and borders. The problem is that most browsers are going to remove the background colors and pictures when printing. My idea as an alternative was to create a download for the users that will open in a program separate from their browser that I can format a table with colors. Microsoft Excel will open an HTML document and use the css to format the cells, but I can't force the user to use a specific program when opening. The only other solution I can come up with is to manually write an xls file. I looked into the file structure and it gets pretty complicated once you get into the formatting. Is there maybe a different file type that would be easier to do this with?

 

Thanks for any ideas

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.