Recently had Dev Studio V7.7.02 installed and discovered that "PCHOLD FORMAT EXL2K" does not work. No errors, I just get an empty window. I still have V7.6 and it works fine.
Anyone else experienced this.
Thanks, TedThis message has been edited. Last edited by: Kerry,
Dev Studio 8.0.09 App Studio 8.2.01 DB2, FOCUS PDF, HTML, Excel, CSV In Focus since 1983
May 18, 2011, 03:35 PM
Francis Mariani
Is that the exact same code on both versions?
Does the report work for non-EXL2K versions?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
May 18, 2011, 03:57 PM
paulI
We have 7.7.01 of Dev Studio and it works fine. What changed between 7.7.01 and 7.7.02?
Prod: WF 7.7.05, BID, MRE, 7.7.06M Server, Windows 2008, RedHat, Oracle 11gR1, MS Office 2010 Test: I wish we had one!
May 19, 2011, 08:12 AM
TedB
Hi Francis,
I used the exact code on both versions. It works fine for PDF, Excel95(EXCEL), Excel97(EXL97).
TedThis message has been edited. Last edited by: TedB,
Dev Studio 8.0.09 App Studio 8.2.01 DB2, FOCUS PDF, HTML, Excel, CSV In Focus since 1983
May 19, 2011, 09:31 AM
Prarie
I'd open a case with IBI. We have hundreds of EXL2K reports and I'm testing 7.7.02 right now..and just tested a EXL2K report and it works fine...(you scared me!).
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
May 19, 2011, 09:59 PM
j.gross
I found EXL2K TEMPLATE reports (where the template includes a run-once macro to format the result pages) take a long time to open in IE. White screen, as Ted described. When I worked up the patience, the report did finally come up -- after a 5 or 6 minute wait.
I would like to capture the raw file that WF sends, to determine whether the delay occurs even when opened from disk directly in Excel, or only when it is opened via EXCEL.EXE helper in IE. -- Can anyone advise me on how to capture the file, before Excel has had a chance to trigger the macro?
- Jack Gross WF through 8.1.05
May 20, 2011, 06:38 AM
<JG>
Jack,
just disable the macro, then run and save the report in .mht format. Then you can open it in excel and step through the macro to see what's going on.
At 5-6 minutes it's either a very large document or the macro may be looping.
May 20, 2011, 07:22 AM
Tony A
It may or may not be the case in this instance, but if you have page formating within your VBA code such as - With ActiveSheet.PageSetup .LeftHeader = "" .CenterHeader = "" .RightHeader = "" .LeftFooter = "" .CenterFooter = "" .RightFooter = "" .LeftMargin = Application.InchesToPoints(0.75) .RightMargin = Application.InchesToPoints(0.75) .TopMargin = Application.InchesToPoints(1) .BottomMargin = Application.InchesToPoints(1) .HeaderMargin = Application.InchesToPoints(0.5) .FooterMargin = Application.InchesToPoints(0.5) etc.
- Excel and the plug in will make a call to your default printer driver each change.
One way to see if this is the case would be to set your default printer to something simple such as the Microsoft XPS Document Printer (if you are on windows of course!). If the time taken to load is faster then the chances are that the page setup VBA is delaying things.
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
May 20, 2011, 08:51 AM
j.gross
JG, Tony --
Thanks.
May 20, 2011, 10:28 AM
j.gross
quote:
- Excel and the plug in will make a call to your default printer driver each change.
Once for each "margin" setting? Times once per tab if I handled each tab separately? (Ouch)
Kind of new at VBA. (What - Basic without line numbers?)
I tried recording a macro, selecting all sheets, and changing print margins. The generated macro applied the changes just to ActiveSheet.
I looks like there's no way to gangpunch those changes: Selection.PageSetup is invalid ('Object does not support this property or method'); if so, one is constrained to apply changes to one sheet at a time, whether via VB or the Excel GUI.
I'll try setting these properties of the template's sheets in advance, and see whether they survive the processing in WF server.
- Jack Gross WF through 8.1.05
May 20, 2011, 12:18 PM
Tony A
quote:
see whether they survive the processing in WF server
Jack,
I guess you know what the answer will be!
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
May 20, 2011, 01:38 PM
j.gross
Warren --
yes.
Not surprising: the very fact that Excel allows the user to address the print layout properties of only one tab at a time indicates that the properties are stored with the tab content. So not surprising that the WF report wipes it out.
I tested running the macro locally, as JG (the capped one) suggested, with a real network printer as the default. Stepping through, there was a palpable pause at each line (setting margins and other properties. Not just setting margins -- even horizontal positioning, which has no obvious dependence on the printer).
When I just let the macro Run, the handling of each tab took measured moments. When I set Snagit's print-capture as the default printer, it ran lickety-split. So, it's as you said.