Html preview of the report ignores the wordwrap

Stimulsoft Reports.NET discussion
Post Reply
shemein
Posts: 5
Joined: Fri Jan 13, 2017 1:11 am

Html preview of the report ignores the wordwrap

Post by shemein »

I have some reports which after rendering them in html5 the html5 syntax will be saved as a string in the database and will be retrieve from database and be shown in web. The problem is the html string will be shown like html preview in the report and ignores the wordwrap=true. I want to see how I can fix this issue and consider wordwrap=true in html string?

Regards,
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Html preview of the report ignores the wordwrap

Post by HighAley »

Hello.

Could you send us a sample report that demonstrates the issue?

Thank you.
shemein
Posts: 5
Joined: Fri Jan 13, 2017 1:11 am

Re: Html preview of the report ignores the wordwrap

Post by shemein »

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
<Dictionary Ref="1" type="Dictionary" isKey="true">
<BusinessObjects isList="true" count="0" />
<Databases isList="true" count="0" />
<DataSources isList="true" count="0" />
<Relations isList="true" count="0" />
<Report isRef="0" />
<Variables isList="true" count="52">
<value>Formula_x0020_Fields,AssetTag,AssetTag,,System.String,_x0031_1223344556677889911223344556677889911223344,False,False,False,False</value>
<value>Formula_x0020_Fields,AssetTypeNumber,AssetTypeNumber,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,AuditWindow,AuditWindow,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,Category,Category,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,CompanyName,CompanyName,,System.String,_x0022_myCompanyName_x0022_,False,False,False,False</value>
<value>Formula_x0020_Fields,ContractNumber,ContractNumber,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,CustomerNumber,CustomerNumber,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,DepartmentName,DepartmentName,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,EmployeeNumber,EmployeeNumber,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,EndPurchaseDate,EndPurchaseDate,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,FormatMoneyDecimal,FormatMoneyDecimal,,System.String,_x0022__x007B_0:N_x0022__x0020__x002B__x0020_MoneyDecimalPlaces_x0020__x002B__x0022__x007D__x0022_,False,True,False,False</value>
<value>Formula_x0020_Fields,FundingName,FundingName,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,LocationCode,LocationCode,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,PurchaseCost,PurchaseCost,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,PurchaseCostFormat,PurchaseCostFormat,,System.String,Format_x0028_FormatMoneyDecimal_x002C__x0020_PurchaseCost_x0029_,True,True,False,False</value>
<value>Formula_x0020_Fields,PurchaseOrderNumber,PurchaseOrderNumber,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,QuantityDecimalPlaces,QuantityDecimalPlaces,,System.String,_x0032_,True,False,False,False</value>
<value>Formula_x0020_Fields,SiteName,SiteName,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,StartPurchaseDate,StartPurchaseDate,,System.String,,False,False,False,False</value>
<value>Formula_x0020_Fields,VendorNumber,VendorNumber,,System.String,,False,False,False,False</value>
<value>Label</value>
<value>Label,AssetTagLabel,AssetTagLabel,,System.String,_x002A__x002A__x0020_Asset_x0020_Tag,False,False,False,False</value>
<value>Label,AssetTypeNumberLabel,AssetTypeNumberLabel,,System.String,_x002A__x002A__x0020_Asset_x0020_Type_x0020_Number,False,False,False,False</value>
<value>Label,AuditWindowLabel,AuditWindowLabel,,System.String,,False,False,False,False</value>
<value>Label,CheckInLabel,CheckInLabel,,System.String,_x002A__x002A__x0020_Checked_x0020_In,False,False,False,False</value>
<value>Label,CheckOutLabel,CheckOutLabel,,System.String,_x002A__x002A__x0020_Checked_x0020_Out,False,False,False,False</value>
<value>Label,ContractLabel,ContractLabel,,System.String,_x002A__x002A__x0020_Contract,False,False,False,False</value>
<value>Label,CostLabel,CostLabel,,System.String,_x002A__x002A__x0020_Cost,False,False,False,False</value>
<value>Label,CustomerNumberLabel,CustomerNumberLabel,,System.String,_x002A__x002A__x0020_Customer_x0020_Number,False,False,False,False</value>
<value>Label,DepartmentLabel,DepartmentLabel,,System.String,_x002A__x002A__x0020_Department,False,False,False,False</value>
<value>Label,DisposeLabel,DisposeLabel,,System.String,_x002A__x002A__x0020_Disposed,False,False,False,False</value>
<value>Label,EmployeeNumberLabel,EmployeeNumberLabel,,System.String,_x002A__x002A__x0020_Employee_x0020_Number,False,False,False,False</value>
<value>Label,FileNameLabel,FileNameLabel,,System.String,_x002A__x002A__x0020_Asset_x0020_Depreciation_x0020_By_x0020_Department_x0020_Report,False,False,False,False</value>
<value>Label,FundingNameLabel,FundingNameLabel,,System.String,_x002A__x002A__x0020_Funding_x0020_Name,False,False,False,False</value>
<value>Label,LocationCodeLabel,LocationCodeLabel,,System.String,_x002A__x002A__x0020_Location_x0020_Code,False,False,False,False</value>
<value>Label,MoveLabel,MoveLabel,,System.String,_x002A__x002A__x0020_Moved,False,False,False,False</value>
<value>Label,PurchaseCostLabel,PurchaseCostLabel,,System.String,_x002A__x002A__x0020_Purchase_x0020_Cost,False,False,False,False</value>
<value>Label,PurchaseDateLabel,PurchaseDateLabel,,System.String,_x002A__x002A__x0020_Purchase_x0020_Date,False,False,False,False</value>
<value>Label,RecoverLabel,RecoverLabel,,System.String,_x002A__x002A__x0020_Recovered,False,False,False,False</value>
<value>Label,SiteNameLabel,SiteNameLabel,,System.String,_x002A__x002A__x0020_Site_x0020_Name,False,False,False,False</value>
<value>Label,VendorNumberLabel,VendorNumberLabel,,System.String,_x002A__x002A__x0020_Vendor_x0020_Number,False,False,False,False</value>
<value>ParameterField,ATNOp,ATNOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,ATOp,ATOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,COp,COp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,DNOp,DNOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,LCOp,LCOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,MoneyDecimalPlaces,MoneyDecimalPlaces,,System.String,_x0032_,False,False,False,False</value>
<value>ParameterField,PCOp,PCOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,PONOp,PONOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,schema,schema,,System.String,dbo,False,False,False,False</value>
<value>ParameterField,SNOp,SNOp,,System.String,_x0031_,False,False,False,False</value>
<value>ParameterField,UserID,UserID,,System.String,_x0036_572726e-8a30-4670-9afb-53305d5e7c79,False,False,False,False</value>
</Variables>
</Dictionary>
<EngineVersion>EngineV2</EngineVersion>
<GlobalizationStrings isList="true" count="0" />
<MetaTags isList="true" count="0" />
<Pages isList="true" count="1">
<Page1 Ref="2" type="Page" isKey="true">
<Border>None;Black;2;Solid;False;4;Black</Border>
<Brush>Transparent</Brush>
<Components isList="true" count="2">
<Text1 Ref="3" type="Text" isKey="true">
<Brush>Transparent</Brush>
<CanGrow>True</CanGrow>
<ClientRectangle>0,0.4,2,0.6</ClientRectangle>
<Conditions isList="true" count="0" />
<Font>Times New Roman,12</Font>
<Margins>0,0,0,0</Margins>
<Name>Text1</Name>
<Page isRef="2" />
<Parent isRef="2" />
<Text>{"Asset Tag:"+AssetTag + " has been checked out on 2-13-2017."}</Text>
<TextBrush>Black</TextBrush>
<TextOptions>,,,,WordWrap=True,A=0</TextOptions>
<Type>Expression</Type>
</Text1>
<Text2 Ref="4" type="Text" isKey="true">
<Brush>Transparent</Brush>
<CanGrow>True</CanGrow>
<ClientRectangle>0,0,2,0.4</ClientRectangle>
<Conditions isList="true" count="0" />
<Font>Times New Roman,11,Bold</Font>
<Margins>0,0,0,0</Margins>
<Name>Text2</Name>
<Page isRef="2" />
<Parent isRef="2" />
<Text>{"Notification Name:" + AssetTag}</Text>
<TextBrush>Black</TextBrush>
<TextOptions>,,,,WordWrap=True,A=0</TextOptions>
<Type>Expression</Type>
</Text2>
</Components>
<Conditions isList="true" count="0" />
<Guid>118f06e55ccd4f9b915519a7cbed9b45</Guid>
<Margins>0.39,0.39,0.39,0.39</Margins>
<Name>Page1</Name>
<PageHeight>11</PageHeight>
<PageWidth>8.5</PageWidth>
<PaperSize>Letter</PaperSize>
<Report isRef="0" />
<Watermark Ref="5" type="Stimulsoft.Report.Components.StiWatermark" isKey="true">
<Font>Arial,100</Font>
<TextBrush>[50:0:0:0]</TextBrush>
</Watermark>
</Page1>
</Pages>
<PrinterSettings Ref="6" type="Stimulsoft.Report.Print.StiPrinterSettings" isKey="true" />
<ReferencedAssemblies isList="true" count="8">
<value>System.Dll</value>
<value>System.Drawing.Dll</value>
<value>System.Windows.Forms.Dll</value>
<value>System.Data.Dll</value>
<value>System.Xml.Dll</value>
<value>Stimulsoft.Controls.Dll</value>
<value>Stimulsoft.Base.Dll</value>
<value>Stimulsoft.Report.Dll</value>
</ReferencedAssemblies>
<ReportAlias>Report</ReportAlias>
<ReportChanged>2/13/2017 3:29:17 PM</ReportChanged>
<ReportCreated>8/13/2015 8:35:27 AM</ReportCreated>
<ReportFile>C:\Users\zarman\Desktop\Check Out Notification.mrt</ReportFile>
<ReportGuid>24b336482ce54ddbb8d9b1e1a3a2b7e3</ReportGuid>
<ReportName>Report</ReportName>
<ReportUnit>Inches</ReportUnit>
<ReportVersion>2015.3.0</ReportVersion>
<Script>using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;

namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report() {
this.InitializeComponent();
}

#region StiReport Designer generated code - do not modify
#endregion StiReport Designer generated code - do not modify
}
}
</Script>
<ScriptLanguage>CSharp</ScriptLanguage>
<Styles isList="true" count="0" />
</StiSerializer>
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Html preview of the report ignores the wordwrap

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Please try to check the last prerelease build

Thank you.
Attachments
Capture.PNG
Capture.PNG (15.86 KiB) Viewed 3245 times
shemein
Posts: 5
Joined: Fri Jan 13, 2017 1:11 am

Re: Html preview of the report ignores the wordwrap

Post by shemein »

My version is 15 not 16 which I cannot update it and I need to keep it. When u open it with that version and click on HTML preview you will see what I am saying please give me a solution for that.
FYI: report renders this text

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<style type="text/css">
.saa815f36{Font:bold 11pt 'Times New Roman';text-align:left;justify-content:flex-start;display:flex;align-items:flex-start;position:absolute;overflow:hidden;line-height:1.15em;}
.s7829a0b1{Font:bold 10pt 'Times New Roman';text-align:left;justify-content:flex-start;display:flex;align-items:flex-start;position:absolute;overflow:hidden;line-height:1.15em;}
</style>

</head>
<body style="margin:0;">
<div class="StiPageContainer" style="width:150pt;height:150pt;position:relative;background-color:White;">
<div class="saa815f36" style="left:0pt;top:0pt;width:146.25pt;height:75pt;padding-right:20pt;"><p>dispose 11223344556677899900657282920292827262345:</p></div>
<div class="s7829a0b1" style="left:0pt;top:39.75pt;width:150pt;height:35.25pt;padding-right:20pt;"><p>Asset Tag 11223344556677899900657282920292827262345 has been </div>
<!-- end page -->
<div class="saa815f36" style="left:0pt;top:75pt;width:0.75pt;height:12.75pt;"></div>
<div class="s7829a0b1" style="left:0pt;top:75pt;width:150pt;height:12.75pt;">disposed.</div>
<!-- end page -->
</div>
</body>
</html>
Which ignores the word wrap
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Html preview of the report ignores the wordwrap

Post by HighAley »

Hello.

The browsers can't hyphenate the long words.
If it's too long the components became larger or the test is cut.

You could try to solve the issue with TextQuality=Wysiwyg property of the text or to set next static option:

Code: Select all

StiOptions.Export.Html.ForceWysiwygWordwrap = true;
Thank you.
Post Reply