| Summary: | [OLE] Plug-in with View (Excel file with chartsheet and worksheet) is not displayed correctly in Eclipse RCP | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | mo84 | ||||||||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | ||||||||||||
| Version: | 3.5 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | stalebug | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
mo84
Created attachment 167908 [details]
Plug-In Project with a embedded MS-Excel
Created attachment 167910 [details]
image, which shows the bug.
Created attachment 167911 [details]
image with correctly displayed chart-sheet
I have tested the following combinations: - Eclipse Galileo (Eclipse for RCP/Plug-in Developers) - Windows 7/XP - Excel 2000/2003/2007 - Java SE 1.6.0_17-b04 / Java DK 1.6.0_17 This worked for me on XP SP3 + Office 2003 The code you sent will created a empty excel file, I had to enter some data manually in order to create a chart. Does it matter the type of chart you add ? (In reply to comment #5) > This worked for me on XP SP3 + Office 2003 > > The code you sent will created a empty excel file, I had to enter some data > manually in order to create a chart. > > Does it matter the type of chart you add ? Yes. I only have the problem when I insert a chart-sheet (not a worksheet with diagram - that´s an difference). Created attachment 168880 [details]
Excel Template File
(In reply to comment #7) > Created an attachment (id=168880) [details] > Excel Template File simple overwrite createPartControl: @Override public void createPartControl(Composite parent) { try { OleFrame frame = new OleFrame(parent, SWT.NONE); File template = new File("C:\\Mappe1.xls"); site = new OleClientSite(frame, SWT.NONE, template); } catch (SWTError e) { System.out.println("Unable to open activeX control"); return; } } ...and put the template to you´re C:\ to use the template (includes chartsheet and worksheet). Works for me, at the end of createPartControl, try calling: site.doVerb(OLE.OLEIVERB_INPLACEACTIVATE); parent.layout(); does not work for me. Which configuration do u have? (JavaSE, Office, Windows, Eclipse) (In reply to comment #10) > does not work for me. Which configuration do u have? (JavaSE, Office, Windows, > Eclipse) Office 2003 Eclipse 3.6 RC1 Java IBM JDK 1.4.2 Windows XP SP 3 English Now I´ve testet the following combinations: error with: -------------------------- Windows 2000 SP-4 Eclipse 3.5 / 3.6 jre 1.6.0_11 / jdk1.6.0_20 Excel 2000 SP-3 Windows 7 Eclipse 3.5 Excel 2000 SP-3 jdk1.6.0_17 ok, no error with: -------------- Windows 7 Eclipse 3.5 / 3.6 Excel 2007 jdk1.6.0_20 Is it possible that the error is related to the MS Office Version? (In reply to comment #12) > Is it possible that the error is related to the MS Office Version? Yes This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This bug has been marked as stalebug a while ago without any further interaction. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag. This bug was marked as stalebug a while ago. Marking as worksforme. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag. |