DO NOT REPLY [Bug 43373] New: - Style error in Regions

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43373.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43373

   Summary: Style error in Regions
   Product: POI
   Version: 3.0
  Platform: All
OS/Version: Windows Server 2003
Status: NEW
  Severity: normal
  Priority: P3
 Component: HSSF
AssignedTo: dev@poi.apache.org
ReportedBy: [EMAIL PROTECTED]


When you create a new Region, if you put and style in the cell that affect the
border, that border only works in one of the cells of the region.
It seems aleatory the cells that works.
If you want some print screen to understand better the problem and the code I
will send you.
Thanks in advance.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43376] New: - Macro code lost after edit a ppt file

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43376

   Summary: Macro code lost after edit a ppt file
   Product: POI
   Version: 3.0
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: critical
  Priority: P1
 Component: HSLF
AssignedTo: dev@poi.apache.org
ReportedBy: [EMAIL PROTECTED]


I create a ppt file with some macro code.  Then I edit the ppt file by a java 
application. The java code is below:
public class Test {
public static void main(String[] args){
System.out.println(Start);
String data = test abc;
try {
FileInputStream fis = new FileInputStream
(d:\\test\\temp.ppt);
HSLFSlideShow hss = new HSLFSlideShow(fis);
SlideShow ss = new SlideShow(hss);
Slide slide = ss.getSlides()[0];
TextBox shape = new TextBox();
shape.setText(data);
shape.setAnchor(new java.awt.Rectangle(50, 50, 500, 
300));  
//  slide.addShape(shape);

FileOutputStream fos = new FileOutputStream
(d:\\test\\result.ppt);
hss.write(fos);
//ss.write(fos);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

System.out.println(End);
}
}

When I try to run the macro in the new ppt file result.ppt, the error File 
not found occured.

My Enviroument likes below:
OS: Windows xp Simple Chinese Edition
JDK: 1.4.2
poi: 3.0.1-FINAL-20070705
Office: ppt file is created by office xp  2003 (I tried two ppt file create 
by different office edition)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43376] - Macro code lost after edit a ppt file

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43376


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2007-09-13 02:34 ---
It's possible the macros are stored in another stream, and we're not writing it
back out again

Could you upload a sample file, so we can take a look?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 42844] - ContinueRecord incorrectly handled in HSSFEventFactory.processEvents

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42844.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42844


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-09-13 12:11 ---
I see what's missing.
We borrowed the code from RecordFactory.CreateRecords but forgot to handle
unknown records that happen to be continued.

In RecordFactory.CreateRecords this piece of code looks as follows:

  if (lastRecord instanceof UnknownRecord) {
//Gracefully handle records that we dont know about,
//that happen to be continued
records.add(record);
  } else 
throw new RecordFormatException(Unhandled Continue Record);
  }


In HSSFEventFactory it should be like this:

  if (rec instanceof UnknownRecord) {
 ;//silently skip records we don't know about
  } else {
throw new RecordFormatException(Records should handle ContinueRecord
internally. Should not see this exception);
  }

With this change it works without complains. I included the provided excel file
in the unit test. 

Regards,
Yegor


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 43376] - Macro code lost after edit a ppt file

2007-09-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=43376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43376





--- Additional Comments From [EMAIL PROTECTED]  2007-09-13 18:21 ---
Created an attachment (id=20823)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=20823action=view)
here is the result file Generated by java


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]