Company: Link Technologies
Case No: L12388
Logged By: Sanjay (Link Technologies) on 28 Aug 2011 02:51PM
Priority: Not Applicable
Product: Other
Group: To be assigned
Time Taken: 0.00
Assigned To: Sanjay (Link Technologies)
Circulation: Sanjay
Resolve By: Sunday, 28 August 2011 02:51 PM [4619 days since logged date]
Status: Closed
Subject: Excel Export incorrectly formatted
Summary:    

When exporting data from Explorer to Excel, some data lines are incorrectly formatted and lines are truncated and restarted at the begining of the next line.

Solution: This is caused by Carriage Return Line Feed characters (Char(10) and Char(13)) in the data. We found this in Inventory, AP/AR and GL.

The script below will remove this, but be careful as this will also remove the formatting on the descriptions of Inventory items.

declare @desc varchar(100)

set @desc = '%' + char(10) + '%'

update inventory set [description] = replace(description, char(10), ' ') where [description] like @desc

update apinpcdt set line_desc = replace(line_desc, char(10), ' ') where line_desc like @desc

update apvodet set line_desc = replace(line_desc, char(10), ' ') where line_desc like @desc

update gltrxdet set [description] = replace([description], char(10), ' ') where [description] like @desc

set @desc = '%' + char(13) + '%'

update inventory set [description] = replace(description, char(13), ' ') where [description] like @desc

update apinpcdt set line_desc = replace(line_desc, char(13), ' ') where line_desc like @desc

update apvodet set line_desc = replace(line_desc, char(13), ' ') where line_desc like @desc

update gltrxdet set [description] = replace([description], char(10), ' ') where [description] like @desc

Audit Notes:
If you have any queries regarding this support incident, please email admin@linktechnologies.com.au and include the Case No: L12388 in the subject line of all emails regarding this issue.

Document size: 1.7 KB
For call complaints, please contact the Managing Director of the company using this form