How can I add a new worksheet part ?

Topics: User Forum
Nov 9, 2007 at 2:44 AM
Right click the node "workbook.xml", click "add a new part ...", select "Empty worksheet", the default name was "/worksheets/sheet1.xml", I change it to "/worksheets/sheet2.xml" because sheet1 was exists, then I click OK, a warning icon flashed :"Absolute paths are not allowed", so I delete the first slash of name and click OK again, a ErrorDialog popup, it said: "An unexpected error has occured. Part URI must start with a forward slash. ", I confused, these is the details:

Part URI must start with a forward slash.

at System.IO.Packaging.PackUriHelper.ValidatePartUri(Uri partUri)
at System.IO.Packaging.Package.GetPartHelper(Uri partUri)
at System.IO.Packaging.Package.PartExists(Uri partUri)
at PackageExplorer.ObjectModel.Document.CreateUniquePartLocation(String path) in C:\Documents and Settings\Wouter\My Documents\Visual Studio 2005\Projects\PackageExplorer\PackageExplorer\ObjectModel\Document.cs:line 603
at PackageExplorer.ObjectModel.Document.CreatePart(String path, String contentType) in C:\Documents and Settings\Wouter\My Documents\Visual Studio 2005\Projects\PackageExplorer\PackageExplorer\ObjectModel\Document.cs:line 324
at PackageExplorer.TemplateModel.DocumentPartTemplate.Instantiate(String name, DocumentPartCollection container, Document document) in C:\Documents and Settings\Wouter\My Documents\Visual Studio 2005\Projects\PackageExplorer\PackageExplorer\TemplateModel\DocumentPartTemplate.cs:line 65
at PackageExplorer.TemplateModel.DocumentPartTemplate.Instantiate(String name, Object tag) in C:\Documents and Settings\Wouter\My Documents\Visual Studio 2005\Projects\PackageExplorer\PackageExplorer\TemplateModel\DocumentPartTemplate.cs:line 52
at PackageExplorer.UI.Dialogs.TemplateDialog.PackageExplorer.UI.Dialogs.IDialogContent.ApplyChanges() in C:\Documents and Settings\Wouter\My Documents\Visual Studio 2005\Projects\PackageExplorer\PackageExplorer\UI\Dialogs\TemplateDialog.cs:line 44
at PackageExplorer.UI.Dialogs.DialogWindow.OkButton_Click(Object sender, EventArgs e) in C:\Documents and Settings\Wouter\My Documents\Visual Studio 2005\Projects\PackageExplorer\PackageExplorer\UI\Dialogs\DialogWindow.cs:line 168
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Coordinator
Dec 6, 2007 at 12:42 PM
Ooopsiee! Getting it fixed!