spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

Top | Post New Question | Read All | MP2K Asks Microsoft

378 Vincent - September 5, 2001

Using the Map Point API from VB I sometimes get the following error message: "The file name is too long. Enter a shorter file name, and try again." when calling MapPoint.SavedWebPage.Save(). This happens even though it created the file. Thanks.

Answer:

There is a maximum length of 260 characters for the combination of path, filename and extension when using MapPoint.SavedWebPage.Save(). In your case, some files are probably under that limit (so they are created) while others aren't (causing the error to appear). Path names are usually the main culprits, but you'll also notice that MapPoint automatically generates a folder and puts some additional files into it with standard filenames, so you can actually hit this 260 character limit for some of the supporting files quite easily.

Post New Answer / Follow-up


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.