hi,
Post by TravellerIs it possible to either export or print just the list of stops in a route in
MapPoint (or Streets & Trips) to an Excel, Word or any other kind of file?
with Mappoint you have you WayPoint set and can Calculate Route ?
if yes, you just have to use ActiveRoute Object to find all Stops.
*** Xbase++ Code ***
//
// for Stops use geoPrintDirections
//
::lDirections:selected := {|| ::nPrintArea := geoPrintDirections }
METHOD MapBig:Printmap()
LOCAL lExit := .F.
LOCAL nEvent, oXbp, mp1, mp2
LOCAL oApp
LOCAL OutputFileName := ""
LOCAL Title := "Job MP Ausdruck"
IF ::oAXControl:ActiveMap:ActiveRoute:IsCalculated()
ELSE
::oStatus:Setcaption( "bitte warten ... Route wird berechnet" )
::oAXControl:ActiveMap:ActiveRoute:Calculate()
::oAXControl:ItineraryVisible := .F.
::oStatus:Setcaption("Entfernung
"+LTRIM(STR(::oAXControl:ActiveMap:ActiveRoute:Distance(),10,2) )+" KM")
ENDIF
oApp := DlgPrint():New()
oApp:close := {|| lExit := .T. }
oApp:ButtonCancel:activate := {|| lExit := .T. }
oApp:ButtonOK:activate := {|| ::oAXControl:ActiveMap:PrintOut(;
OutputFileName ,;
Title ,;
oApp:nCopies:getdata() ,;
oApp:nPrintArea ,;
oApp:nQuality ,;
oApp:nOrientation ,;
oApp:lCollate ,;
oApp:lLegend ,;
oApp:lOverview ,;
oApp:lFaxable ) ,;
lExit := .T. }
oApp:oCollate:selected := {|lCheck, uNIL, self | oApp:lCollate :=
!lCheck }
oApp:oLegend:selected := {|lCheck, uNIL, self | oApp:lLegend :=
!lCheck }
oApp:oOverview:selected := {|lCheck, uNIL, self | oApp:lOverview :=
!lCheck }
oApp:oFaxable:selected := {|lCheck, uNIL, self | oApp:lFaxable :=
!lCheck }
oApp:Create()
oApp:oDetail:show()
oApp:oDetail:dohotkey()
SetappFocus(oApp:oDetail)
nEvent := xbe_None
DO WHILE .NOT. lExit
nEvent := AppEvent ( @mp1, @mp2, @oXbp )
oXbp:HandleEvent ( nEvent, mp1, mp2 )
ENDDO
oApp:destroy()
SetAppFocus(::oExit)
RETURN self
*** eof ***
greetings by OHR
Jimmy