VERIFIED SOLUTION i
X

How to save a Workspace (MWS) file, without having the full path of TAB file in MapXtreme

UPDATED: March 28, 2018


The below code saves a MapXtreme® Workspace, where the TAB filename will not need to contain the complete directory path.

var table = MapInfo.Engine.Session.Current.Catalog.OpenTable(@"C:\temp\Data\MEXICO.tab");
..
WorkSpacePersistence w = new WorkSpacePersistence();
w.Save(@"C:\temp\Data\MEXIXO.mws"); // In MWS file: <FileName>MEXICO.tab</FileName>

Environment Details

Product Affected: MapXtreme®

Downloads

  • No Downloads