Sending html file through SendLetterAndAddressV2
I am using SendLetterAndAddressV2 and sending html.
Here is a piece of my code:
byte[] data = Encoding.ASCII.GetBytes(html);
PostalWSSimpleSoapClient postalMethods = new PostalWSSimpleSoapClient(_endpointName);
int responseId = postalMethods.SendLetterAndAddressV2(_userName, _password, description, "html", data,
mode , address.AttentionLine1, address.AttentionLine2, address.AttentionLine3, address.CompanyName,
address.AddressLine1, address.AttentionLine2, address.City, address.State, address.ZipCode, address.Country);
in html variable I have a simple string like this:
<html> <body> <table width="300" height="400" style="background:Gray;"> <tr> <td> <img width="150" height="150" src="https://XXXX/XXX/XX/XXX/3881"/> </td> </tr> </table> </body> </html>
I get it processed successfully but when I try to view it as pdf doc in CP I see the blank page.
Am I doing something wrong? How can I see my html doc rendered in pdf file?

Comments
Any suggestions? Thank you.
Any suggestions?
Thank you.
const string MyUsername =
@galimk, I checked the last
@galimk, I checked the last HTML you sent and it seems rather empty. There is an
<img src>leading to an empty page. I recommend you make a test with a simple HTML containing some text just to make sure there is nothing wrong with HTML. Then use Internet Explorer 7 locally and make sure that the SRC is returning content. If it does and you still get blank PDFs, please check if the expected data is available when browsing from outside your internal network.Please note that since background colors and images are not printed by default, we do not print the specified background and so you do not see it in the PDF but you do see it when you open the HTML you send us.
--
David O.
PostalMethods Support
Thank you for response! I
Thank you for response!
I will try to use an html doc with text content tomorrow.
I was sending a table with a background and an image which apparently are not printed by default!
Images are printed by
Images are printed by default but your image source is not leading to one. Images and colors set as Background are not printed.