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     Writing multi sheet excel workbooks to sharepoint.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Writing multi sheet excel workbooks to sharepoint.
 Login/Join
 
Member
posted
I am having trouble writing multisheet excel workbooks to sharepoint.

Here is a snipet of my syntax
If I use this in multiple sections of my fex
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TITLETEXT='RCC', $
END
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TITLETEXT='RCD', $
END
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TITLETEXT='PCAT', $
END

It work fine but it pops up and asks me to open or save the file. The problem is that I want to write it to a sharepoint server so I replace
ON TABLE PCHOLD FORMAT EXL2K CLOSE
with
ON TABLE SAVE FILENAME
'Z:\APPLICATION.XLS'
FORMAT EXL2K CLOSE

It writes the file but it only contains the first tab.

Thanks in advance for your help
 
Posts: 9 | Registered: October 07, 2003Report This Post
Virtuoso
posted Hide Post
I can't say as to the issue of saving, but I don't think you need an open on the second step just the pchold.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
Try filedefing the file rather that the syntax you are using and use HOLD rather than PCHOLD otherwise the output will be sent to screen only -

FILEDEF XLSOUT DISK Z:\APPLICATION.XLS
-RUN
....
ON TABLE HOLD AS XLSOUT FORMAT EXL2K OPEN
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TITLETEXT='RCC', $
ENDSTYLE
END
....
ON TABLE HOLD AS XLSOUT FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TITLETEXT='RCD', $
ENDSTYLE
END
....
ON TABLE HOLD AS XLSOUT FORMAT EXL2K CLOSE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TITLETEXT='PCAT', $
ENDSTYLE
END

As Leah states, you do not (or should not) have the OPEN on the second or middle extracts.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thanks that worked great. I appreciate your help.
 
Posts: 9 | Registered: October 07, 2003Report 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     Writing multi sheet excel workbooks to sharepoint.

Copyright © 1996-2020 Information Builders