Solved

cf 9.01 spreadsheet -- inserting page break?

Posted on 2013-05-15
2
301 Views
Last Modified: 2013-05-30
Does anyone know how to insert a page break in a "spreadsheet" object created with cold fusion?
0
Comment
Question by:Javier_Arroyo
2 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 39169121
That's not supported in CF. You'll have to use the POI stuff. Get a reference to the sheet object. Then insert a row or column break, wherever you want


<cfset yourObject = spreadSheetNew()>
....
<cfset theSheet = yourSpreadsheetObject.getWorkBook().getSheet("SomeSheetName")>
<cfset theSheet.setColumnBreak( columnNumber ) >
<cfset theSheet.setRowBreak( rowNumber ) >

Open in new window


You may need to disable the auto page breaks first:

<cfset theSheet.setAutobreaks( false ) >

Open in new window

0
 

Author Closing Comment

by:Javier_Arroyo
ID: 39208739
This worked perfectly!!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
On Submit return to same spot 7 95
Application.cfc - what is the order of events? 4 46
cfscript coding help 4 25
Insert query into temp tables using Coldfusion 3 34
PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question