ASF Bugzilla – Attachment 31693 Details for
Bug 56601
The requested operation cannot be performed on a file with a user-mapped section open
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
logical flow to recreate
TestDriver.java (text/plain), 1.31 KB, created by
Jamie Singer
on 2014-06-06 19:29:18 UTC
(
hide
)
Description:
logical flow to recreate
Filename:
MIME Type:
Creator:
Jamie Singer
Created:
2014-06-06 19:29:18 UTC
Size:
1.31 KB
patch
obsolete
>package com.discoverymachine.util; > >import java.io.*; > >import com.discoverymachine.dm.engine.*; > >public class TestDriver >{ > > public static void main( String[] args ) > { > try > { > File f = args!=null&&args.length>0 ? > new File( args[0] ) : > File.createTempFile( "test", ".xlsx" ); > > String fileName = f.getAbsolutePath(); > RunVariable vFile = new RunString( f.getAbsolutePath() ); > > String sheet = "Sheet1"; > RunVariable vSheet = new RunString( sheet ); > > String cellAddr = "A1"; > RunVariable vCellAddr = new RunString( cellAddr ); > > TMKXLSFunctions.XLSCreateFile( vFile, new RunBoolean( true ) ); > TMKXLSFunctions.XLSAddSheet( vFile, vSheet ); > > int i = 0; > //for( i=0; i<10000; i++ ) > while( true ) // need exception to quit > { > i++; > RunVariable vValue = new RunInteger( i ); > TMKXLSFunctions.XLSUpdateCell( vFile, vSheet, vCellAddr, vValue ); > > String cellVal = ""+XLSHelper.getSheet( fileName, sheet) > .getRow( 0 ).getCell( 0 ).getNumericCellValue(); > > System.out.println("Cell value ["+cellVal+"]"); > } > > } > catch( Throwable t ) > { > t.printStackTrace(); > } > > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 56601
: 31693