Excel page orientation

Project:libxlsx
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi all,

I am expecting help for this. Working on web-based application. webspeed, agent, broker, ps:eScript bla bla bla...

Now will come to the problem. Excel oops.. is the problem now..

We can create excel sheet and can do the formatting using Progress code. No problem with this one.

But the problem here is instead of create com-handle, worksheets, workbooks we directly export to excel. I don't have enough idea on how it is working. Because when clicks on button (say "Excel") it is directly exporting to the excel sheet from web (here records are available in temp-table). When we click the excel button it calls a procedure "exportExcel"

*********************** exportExcel START *************************
PROCEDURE exportExcel :
/*------------------------------------------------------------------------------
Purpose: export to Excel
Version: 0.00
Created:
Notes:
------------------------------------------------------------------------------*/
glExport = TRUE.

processMarkup("xxxxxxxxxxxxxxxxxx.html":U).
RETURN.
END PROCEDURE.

************************ exportExcel END **************************

glExport is used in a function "getContentType"

********************** getContentTye START ************************
FUNCTION getContentType RETURNS CHARACTER
( /* parameter-definitions */ ) :
/*------------------------------------------------------------------------------
Purpose : Super Override
[If we are exporting the results we set the HTTP content type
to ms-excel. This will cause the web browser to start Excel
to display the results in.]
Parameters :

------------------------------------------------------------------------------*/

IF glExport THEN
RETURN "application/vnd.ms-excel":U.
ELSE
RETURN SUPER().

END FUNCTION.
********************** getContentTye END ************************

Now what I have to do it I need to set the excel page orientation to Landscape because default is portrait but user needs it to landscape.

Anyone can help me please????????????


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alonb's picture

#1

I think you're talking about ActiveX not slibxlsx and slibdocx.

2 big reasons not to use ActiveX, among many others:

1. It's more then 100 times slower then slibxlsx and slibdocx.

2. ActiveX is Windows only and slibxlsx and slibdocx runs on UNIX/Linux and Windows.

Below is a link to video on slibxlsx and slibdocx.

It's a short, non technical presentation and short demo.

http://download.psdn.com/media/revolution_2011/oe10/OE1008.wmv

(The video is about 70 megabytes. You may want to download it first).

You can also visit the project homepage.

Download a trial version and try the samples or just browse the tutorial.

http://www.oehive.org/project/libooxml

I'll be happy to show you how to change the page orientation in libxlsx.