Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Excel report corrupts numbers

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Excel report corrupts numbers
 Login/Join
 
Expert
posted
Riddle me this Focalpointers....

We have found here that an Excel report corrupts the phone numbers in the report.

This seems to happen in Excel 2003, and seems to be part fixed from SP1 to SP2.

If the compound Excel is opened in Excel 2003 SP1, both sheets are corrupt, but in SP2 and SP3 only the second sheet is corrupt.

SET COMPOUND=OPEN
TABLE FILE CAR
HEADING
"+6543210123"
PRINT COUNTRY
     COMPUTE ERROR/A20 = '+4567-890123';
COMPUTE ERR2/A20  = '+6543210123' ;
COMPUTE ERR3/A20  = '+67890123456' ;
ON TABLE PCHOLD FORMAT EXL2K
END
SET COMPOUND=CLOSE
TABLE FILE CAR
HEADING
"+6543210123"
PRINT
     'CAR.ORIGIN.COUNTRY'
     COMPUTE ERROR/A20 = '+4567-890123';
COMPUTE ERR2/A20  = '+6543210123' ;
COMPUTE ERR3/A20  = '+67890123456' ;
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END


If anyone has any ideas on how to display the correct numbers, it would be appreciated.

My hair is getting thinner each hour.

Our only options are upgrade to 2007 or remove the + and - chars from the numbers.

This message has been edited. Last edited by: Kerry,


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
So far what I have figured out is you just have to remove the - character. For some reason it does not like a + and - together in a number.


WF 8.2.01M
8.2.01M Reporting Server
Windows 2012 Srvr R2
PDF,Excel, HTML
Graphs - a lot of graphs
 
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003Report This Post
Gold member
posted Hide Post
What I discovered is that if you put a non numeric character after the + sign then everything works fine. Therefore you could do a replacement of all + signs with '+ ' (plus and space):

  
TABLE FILE CAR
HEADING
"+6543210123"
PRINT COUNTRY
     COMPUTE ERROR/A20 = STRREP (12, '+4567-890123', 1, '+', 2, '+ ', 20, ERROR);
COMPUTE ERR2/A20  = '+6543210123' ;
COMPUTE ERR3/A20  = '+67890123456' ;
ON TABLE PCHOLD FORMAT EXL2K
END
SET COMPOUND=CLOSE
TABLE FILE CAR
HEADING
"+6543210123"
PRINT
     'CAR.ORIGIN.COUNTRY'
     COMPUTE ERROR/A20 = STRREP (12, '+4567-890123', 1, '+', 2, '+ ', 20, ERROR);
COMPUTE ERR2/A20  = '+6543210123' ;
COMPUTE ERR3/A20  = '+67890123456' ;
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END


I am running XL2K3 SP2 and in your example tab1 works fine and tab2 doesn't. In the above example if you do not do a strrep on the 1st request then it just gives garbage as well.

Hope this helps.


WF 8.2.01M
8.2.01M Reporting Server
Windows 2012 Srvr R2
PDF,Excel, HTML
Graphs - a lot of graphs
 
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003Report This Post
Member
posted Hide Post
Try building your computes with a concatenation:

COMPUTE ERROR/A20 = '+' | '4567-890123';

This seem to work for me.

G
 
Posts: 29 | Location: Seattle Washington | Registered: July 08, 2009Report This Post
Gold member
posted Hide Post
I tried the concatenation and the only way it worked was to add a non numeric character after the + sign. I figured the data Waz will be using will come from a field from the database. Hence the use of STRREP.


WF 8.2.01M
8.2.01M Reporting Server
Windows 2012 Srvr R2
PDF,Excel, HTML
Graphs - a lot of graphs
 
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003Report This Post
<JG>
posted
coding for '+' becomes '+ ' and '-' becomes ' - ' would appear tobe the best option.

Interestingly in 7.7 using format EXL07 it works fine

Except

It does not tab the reports, it works as if NOBREAK was specified on the COMPOUND OPEN.

New feature bug I suspect.
 
Report This Post
Virtuoso
posted Hide Post
If you replace any single instance of '+' with '+ ' in the second report, all of the numbers display correctly. For example, if you make this change to the report heading, all of the numbers display correctly.

SET COMPOUND=OPEN
TABLE FILE CAR
 HEADING
  "+6543210123"
 PRINT COUNTRY
 COMPUTE ERROR/A20 = '+4567-890123';
 COMPUTE ERR2/A20  = '+6543210123';
 COMPUTE ERR3/A20  = '+67890123456';
 ON TABLE PCHOLD FORMAT EXL2K
END
-*
SET COMPOUND=CLOSE
TABLE FILE CAR
 HEADING
  "+ 6543210123"
 PRINT COUNTRY
 COMPUTE ERROR/A20 = '+4567-890123';
 COMPUTE ERR2/A20  = '+6543210123';
 COMPUTE ERR3/A20  = '+67890123456';
 ON TABLE PCHOLD FORMAT EXL2K
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
Thanks for the responses, we had worked out that either removing the '-' or adding a space after the + would work, but that would mean either manipulating the data in the program or in the database its coming from.

This is something that I don't like doing. Changing customer data with out there consent is in many ways a no no.

It is unfortunately what we are going to do, as there are only a few of these.

But it still raises the question, why is it happening.

I did find in the Office 2003 SP2 release notes this entry, that may be the reason why.

quote:
When you try to import data by using the Excel 2003 Data Import Wizard, Excel 2003 may incorrectly identify the code page (language setting) of the document that you are trying to import.


Either way its bizarre. Confused

Well at least the issue is now out there.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Excel report corrupts numbers

Copyright © 1996-2020 Information Builders