Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2009, 01:25 PM
Registered User
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Studio 2005 export to Excel Issue with formatting

Hi Everyone-

I am having a tricky issue I have not run into before. I have designed a report in Visual Studio with numerous matrix's in it. In the very last cloumn of every matrix I have an "IIF" statement in a cell. An example of the Iif statment is:

=Iif(reportitems!textbox255.Value > 0, reportitems!textbox256.Value/reportitems!textbox255.Value,0)

This same statement is over and over again in the other matrix's last cell to the right, except the textbox values are different since "reportitems!textbox255.Value" obviously isn't in every matrix so it would have to be changed to accomodate. (EX: reportitems!textbox311.Value...and so on..)

I had selected the properties of the cell and set the format code to "P" (for percentage) for all these and double checked to make sure and they all are and they are still all set up to show percentages .

When I preview the report in Visual Studio all show as percentages...like they are supposed to. When I export to a PDF they also still all show as percentages too. The problem is when I export to excel, some of them are not showing up as percentages, but rather showing up as decimals. For example one of these matrix's will show the amounts with a percentage format like "100%" while the other matrix will show it as a decimal like .1 with no percentage sign.

All the matrix's have the exact same formatting and are showing fine in PDF form and in the preview in Visual Studio, so why is excel showing some matrix's values in percentages, and some of the matrix's in decimals.

Any ideas?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual studio 2005(32 bit) code not work in visual studio 2008 on windows server 2008 gr8.jain Visual Basic 2008 Essentials 1 August 31st, 2009 10:07 AM
migrating from Crystal RPT to Visual Studio 2005 RDL Reports linking to SQL 2005 scottcattell Visual Studio 2005 0 March 19th, 2009 06:16 AM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.