p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 27th, 2009, 02:25 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 11:07 AM
migrating from Crystal RPT to Visual Studio 2005 RDL Reports linking to SQL 2005 scottcattell Visual Studio 2005 0 March 19th, 2009 07:16 AM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 03:08 PM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 02:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM



All times are GMT -4. The time now is 04:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc