I write an HTML file out to the disk and import it into the body field of a memo. Why is it that the width settings of my tables are changed on import? If I import it, and send it to me, and look at the Body field, I see the overall table width is now set to 100% and the width of the two columns are 50% and 49%. So it stretches out across the page.
| Request For Information |
Project Name #1030RFI0003 07/15/2010 |
Subject: Try using CSS attributes to set your widths
Subject: that’s how I did it at first
by putting in lines like this.
I got the same result, and that’s why I tried the col width attribute. same result either way.
Subject: Your original HTML sample data works for me in 8.5.2
Is it possible there are some details you’re forgetting to tell us about how to reproduce this?
Subject: “I then emailed that memo back to me”
I’m guessing the problem in this case is the conversion of the Notes rich-text item to internet HTML as it goes thru your internet gateway – assuming you emailed it via internet mail instead of Notes mail. I don’t think it matters that the source of your table is an import. I suspect a manually created table would work the same way.
Is there a reason you must import the information, as opposed to creating a MIME email directly in the back end, so that you can put your precise HTML in and not have to worry about the round-trip to rich text and back to HTML?
Subject: I could give that a try
you mean like thishttp://www.codestore.net/store.nsf/unid/FISR-6MQSWV?OpenDocument
I want the sender to be able to see the thing they’re sending before they send it, and the above example doesn’t do that, but I don’t see why I can’t use the above example, and then do a notesuiworkspace.editdocument command on it. Writing the HTML to a file and then importing it just seemed a little simpler for me to get my mind around.
Subject: Yes, that’s what I meant.
If you want to display the document to the user, you probably will have to use a special memo form with the body field set to use MIME. Even then I’m not sure if the original HTML will survive the user making edits. In some cases, you don’t want to let Notes or Domino convert your rich text to HTML for you.
Subject: Sending HTML in Email
So there is no domino client server configuration that will let a user import html into an Message and send it in tacked in Domino?
It can only be done pro-grammatically?
It would see a little weak at this point not to be able to. I recall long ago Pass-Thru option HTML worked.
thanks
Subject: steps to reproduce
I don’t have the 8.5.2 client yet (I’m on 8.5.1 with no fixpacks), but I retested just to be sure. Naturally, the thing I’m actually going to be sending is much more complex than this, but I chopped it down just to make my point. I copied the HTML in my original post, then made an HTML file out of it. I opened it up in firefox and IE, and it looked good.I imported the HTML file into the body of a new memo and it looked good there.
I then emailed that memo back to me and the table was then at 100% width for the whole thing, and split up 59% 41% for the two columns this time.
It’s nothing I can’t live with, but if the width goes to 100%, then someone with a big monitor will see the thing stretch out across 20 inches or more of monitor. I’d prefer it if it looked more like an 8.5 x 11 sheet of paper.