Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFSpreadsheet "Read" does not validate sheet name/index #25

Open
Leigh- opened this issue Feb 15, 2011 · 0 comments
Open

CFSpreadsheet "Read" does not validate sheet name/index #25

Leigh- opened this issue Feb 15, 2011 · 0 comments

Comments

@Leigh-
Copy link

Leigh- commented Feb 15, 2011

Bug/Request

When reading a spreadsheet, the tag should throw an error if the specified sheet name or index is invalid.

Actual Results

The workbook is successfully loaded and ["My Sheet"] is set as active.

Expected Results

An error indicating sheet "ThisDoesNotExist" was not found.

Code

<cfset filePath = "c:\myFile.xls" />
<cfset sheet = SpreadSheetNew("My Sheet") />
<cfset SpreadSheetWrite( sheet, filePath, true ) />
<cfspreadsheet action="read" src="#filePath#" sheetname="ThisDoesNotExist" name="data" />
<cfoutput>Active Sheet = #data.getActiveSheet().getSheetName()#</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant