Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cf 9.01 spreadsheet -- inserting page break?

Posted on 2013-05-15
2
Medium Priority
?
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

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

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 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