AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Maptitude über OLE/COM steuern

Ein Thema von DCoderHH · begonnen am 19. Mär 2015 · letzter Beitrag vom 1. Apr 2015
Antwort Antwort
Maptitude

Registriert seit: 23. Mär 2015
4 Beiträge
 
#1

AW: Maptitude über OLE/COM steuern

  Alt 23. Mär 2015, 17:31
We believe you are simply seeing the last error message left over from the application start-up (it tries to load bookmarks but none have been created yet).

The error is unrelated to your custom code.

Perhaps the problem is that the value of the Index option should be an integer, but you are using a string
  Mit Zitat antworten Zitat
DCoderHH

Registriert seit: 4. Feb 2015
Ort: Hamburg
84 Beiträge
 
Delphi 10 Seattle Professional
 
#2

AW: Maptitude über OLE/COM steuern

  Alt 25. Mär 2015, 07:36
Hi, thank you very much for your reply

We believe you are simply seeing the last error message left over from the application start-up (it tries to load bookmarks but none have been created yet).

The error is unrelated to your custom code.
If I start Maptitude without my application then no error message is displayed.

Perhaps the problem is that the value of the Index option should be an integer, but you are using a but you are using a string
I have changed the line
specSub[2] := '53'; to
specSub[2] := 53;
But the error is the same.

Gisdk.RunMacro raises this EOleException:
Code:
'AddAnnotation returned an error. (1)'
and GetLastError shows the error message as I have written in my first post.
  Mit Zitat antworten Zitat
Maptitude

Registriert seit: 23. Mär 2015
4 Beiträge
 
#3

AW: Maptitude über OLE/COM steuern

  Alt 25. Mär 2015, 13:42
Another problem is the first parameter in the call to AddAnnotation - instead of

‘Map |’ + MapName

it should be

‘Map|’ + MapName

i.e. no space character between ‘Map' and ‘|'
  Mit Zitat antworten Zitat
DCoderHH

Registriert seit: 4. Feb 2015
Ort: Hamburg
84 Beiträge
 
Delphi 10 Seattle Professional
 
#4

AW: Maptitude über OLE/COM steuern

  Alt 25. Mär 2015, 13:51
Another problem is the first parameter in the call to AddAnnotation - instead of

‘Map |’ + MapName

it should be

‘Map|’ + MapName

i.e. no space character between ‘Map' and ‘|'
Thanks, but in my code is no space character:

Gisdk.RunMacro('AddAnnotation', 'Map|'+MapName, 'Font Character', spec);

(You can copy and paste it to notepad to check it. The pipe | character has some white space arround it. It may look like a space character. But it isn't)
  Mit Zitat antworten Zitat
DCoderHH

Registriert seit: 4. Feb 2015
Ort: Hamburg
84 Beiträge
 
Delphi 10 Seattle Professional
 
#5

AW: Maptitude über OLE/COM steuern

  Alt 25. Mär 2015, 15:01
I have created a bookmark with Maptitude as a workaround. Now there is a file called caliper.mrk. The error message
Code:
C:\Users\NAME\AppData\Roaming\Caliper\Maptitude 2015\caliper.mrk was not found.
is gone now. But Gisdk.RunMacro raises still this EOleException:
Code:
'AddAnnotation returned an error. (1)'
But GetLastError returns another message now:
Code:
Cannot find resource Matrix.
What is the problem here? Thank you in advance
  Mit Zitat antworten Zitat
Maptitude

Registriert seit: 23. Mär 2015
4 Beiträge
 
#6

AW: Maptitude über OLE/COM steuern

  Alt 25. Mär 2015, 19:02
Please ignore what GetLastError is reporting - these are leftover expected errors that are thrown during the application initialization. These errors have no connection with the problem you are experiencing.
  Mit Zitat antworten Zitat
DCoderHH

Registriert seit: 4. Feb 2015
Ort: Hamburg
84 Beiträge
 
Delphi 10 Seattle Professional
 
#7

AW: Maptitude über OLE/COM steuern

  Alt 26. Mär 2015, 08:04
Please ignore what GetLastError is reporting - these are leftover expected errors that are thrown during the application initialization. These errors have no connection with the problem you are experiencing.
OK, I ignore GetLastError now. But how to fix the problem? The OLE-Exception is still there and AddAnnotation is not executed. It would be helpful if you would provide me a working demo. You can downlaod a free demo version of Delphi at www.embarcadero.com and try to build a working demo.

We have bought 2 licenses of Maptitude. If we get it working many of our customers will buy a license too! This 100% sure

Geändert von DCoderHH (26. Mär 2015 um 13:04 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:43 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz