mibuso.com

Microsoft Business Solutions online community
It is currently Sat May 18, 2013 4:32 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Report Export to Excel - Formating problems
PostPosted: Wed Dec 19, 2012 11:36 am 
Offline

Joined: Wed Dec 19, 2012 11:15 am
Posts: 1
Country: Sri Lanka (lk)
Dear all.

I have write a function for exporting report to excel sheet and it is working well. But thing is some of cells in rows int this sheet is much off big then normal size. I have attached a screen shot of this excel sheet and i have highlighted this area.

Code: Select all
ExcelBuf.AddColumn(FORMAT("G/L Entry"."Posting Date"),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.AddColumn(FORMAT("G/L Entry"."Document No."),FALSE,'',FALSE,FALSE,FALSE,'');
[b]ExcelBuf.AddColumn(FORMAT(''+"G/L Entry".Payee),FALSE,'',FALSE,FALSE,FALSE,'');[/b]
ExcelBuf.AddColumn(FORMAT(''+"G/L Entry"."Bal. Account No."),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.AddColumn(FORMAT(ChequeNo),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.AddColumn(FORMAT(''+"G/L Entry"."Description 2"),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.AddColumn(FORMAT("G/L Entry"."Debit Amount"),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.AddColumn(FORMAT("G/L Entry"."Credit Amount"),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.AddColumn(FORMAT(GLBalance),FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.NewRow;


this is the part for exporting columns in my report. Bolted line is affected to this issue.


So any solution for this one??


Attachments:
File comment: the highlighted area is the this issue comes.
Capture.PNG
Capture.PNG [ 7 KiB | Viewed 650 times ]
Top
 Profile E-mail  
 
 Post subject: Re: Report Export to Excel - Formating problems
PostPosted: Wed Dec 19, 2012 8:06 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6977
Location: L.I., New York
Country: United States (us)
So your issue is with "G/L Entry".Payee?

Is this a custom field?
what's the point of adding a 'FORMAT(''+ before payee..can it be a number starting with zero?

In excel when you click on each field of that row on the formula bar can you see extra spaces?
Are you sure that is the offending column?

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: