export to html problem

Stimulsoft Reports.NET discussion
Post Reply
luczan
Posts: 32
Joined: Wed Jan 19, 2011 3:50 am
Location: Slovakia

export to html problem

Post by luczan »

Hello,

i have a problem with export report to HTML:

version 2013.2.1605.0: all is ok /see oldValidVersion.txt/
version 2013.2.1611.0, 2013.2.1617.0: text is bounded by rectangle /see newInvalidVersion.txt/

you can see difference between valid and invalid version in difference.jpg (mailBody from outlook)

part of html code:
version 2013.2.1605.0:

Code: Select all

	<head>
		<title>DOC.DF.01</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
		<style type="text/css">
		.sbeef3b57{Font:9pt Tahoma;text-decoration:underline;border:0px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.scabee139{Font:bold 9pt Tahoma;border:0px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.s39511b3f{Font:9pt Tahoma;border:0px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.s87c5d624{Font:9pt Tahoma;border:0px;text-align:left;vertical-align:top;line-height:1.15em;word-wrap:break-word;}
		.scc970d79{Font:9pt Tahoma;border:0px;text-align:justify;vertical-align:top;line-height:1.15em;word-wrap:break-word;}
		.s75d73817{Font:8pt Tahoma;border:0px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.sbf739af1{color:Gray;Font:7pt Tahoma;border:0px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		</style>

	</head>
	<body>
		<table cellspacing="0" cellpadding="0" border="0" style="border-width:0px;width:748px;border-collapse:collapse;">
			<tr>
				<td class="sbeef3b57" style="width:748px;height:16px;"><div style="width:748px;">Vec:</div></td>
			</tr><tr>
				<td style="height:4px;width:748px;border:0px;"></td>
			</tr><tr>
				<td class="scabee139" style="width:748px;height:15px;"><div style="width:748px;">Faktúra:</div></td>
			</tr><tr>
version 2013.2.1617.0:

Code: Select all

	<head>
		<title>DOC.DF.01</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
		<style type="text/css">
		.sd701d38a{Font:9pt Tahoma;text-decoration:underline;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.s19e8beba{Font:bold 9pt Tahoma;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.s161f740a{Font:9pt Tahoma;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.s511825ff{Font:9pt Tahoma;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:left;vertical-align:top;line-height:1.15em;word-wrap:break-word;}
		.sb764d2ca{Font:9pt Tahoma;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:justify;vertical-align:top;line-height:1.15em;word-wrap:break-word;}
		.scbef3bc1{Font:8pt Tahoma;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		.s8ad71b1b{color:Gray;Font:7pt Tahoma;border:0px;border-top-color:transparent;border-top-style:solid;border-top-width:1px;border-left-color:transparent;border-left-style:solid;border-left-width:1px;border-right-color:transparent;border-right-style:solid;border-right-width:1px;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:1px;text-align:left;vertical-align:top;line-height:1.15em;overflow:hidden;white-space:nowrap;}
		</style>

	</head>
	<body>
		<table cellspacing="0" cellpadding="0" border="0" style="border-width:0px;width:748px;border-collapse:collapse;">
			<tr>
				<td class="sd701d38a" style="width:748px;height:16px;"><div style="width:748px;height:16px;">Vec:</div></td>
			</tr><tr>
				<td style="height:4px;width:748px;border:0px;"></td>
			</tr><tr>
				<td class="s19e8beba" style="width:748px;height:15px;"><div style="width:748px;height:15px;">Faktúra:</div></td>
			</tr><tr>
export report to html in my app: Report.ExportDocument(StiExportFormat.Html, stream);
same problem is also in Stimulsoft.Designer: preview - save as html file

Thank you.
Attachments
difference.jpg
difference.jpg (95.07 KiB) Viewed 2250 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: export to html problem

Post by HighAley »

Hello.

Please, try to set next Option:

Code: Select all

StiOptions.Export.Html.UseStrictTableCellSize = false;
Thank you.
luczan
Posts: 32
Joined: Wed Jan 19, 2011 3:50 am
Location: Slovakia

Re: export to html problem

Post by luczan »

Thank you for your help, problem is solved.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: export to html problem

Post by HighAley »

Hello.

We are always glad to help you.

Thank you.
Post Reply