IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    filedef exl2k using template
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
I'm using a template to try and hold ex2k output to the server. Getting a "not a valid single web page archive" message when I try to open up the xls after I generate the file.

APP APPENDPATH 42482529
-RUN

FILEDEF OUT1 DISK 42482529/test.xls
-RUN
TABLE FILE CAR
PRINT CAR MODEL BODYTYPE BY COUNTRY
ON TABLE HOLD AS OUT1 FORMAT EXL2K TEMPLATE 'cart' SHEETNUMBER 2
END


FSGDev
WebFOCUS version 7.6.4
IBM AIX 5.2 / 5.3 Co-Op
 
Posts: 8 | Registered: February 12, 2008Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
The main cause is that your template file may not be valid.
The .mht which I do not see in your example must have 2 worksheets and the must both contain something even if it is only a space in a single cell.

Also if you are using Office 2007 EXL2K TEMPLATE doe not work.
This is because Microsoft have made changes to the specification of the Web Archive format.
This means IBI are having to re-engineer how TEMPLATE works
 
Posts: 949 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
You need to generate your template using Excel. Then you can populate it with WebFocus, but your last step needs to be ON TABLE PCHOLD instead of ON TABLE HOLD. There have been a lot of posts on this issue, I would suggest you search the FORUM for more info.


Pat
WF 5.3.2 AIX, NT, AS/400, Focus AS/400, AIX, Oracle, JDE, DB2, Lotus Notes
 
Posts: 525 | Location: TX | Registered: September 25, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Hello FSG,

If you create your template using Excel 2003, you can save it as a .mht. It'll open in Excel 07 but you can't modify the template..
Hope this helps!


-******************-
WF Production Version: WF 7.1.3, 7.1.6, 7.6
WF Test Version: WF 7.1.3, 7.1.6, 7.6
Platform: UNIX, Windows, SUN
 
Posts: 7 | Registered: June 20, 2008Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    filedef exl2k using template

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.