Solved

cf 9.01 spreadsheet -- inserting page break?

Posted on 2013-05-15
2
293 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
Comment Utility
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
Comment Utility
This worked perfectly!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now