laptop and a wrench

Erro

Calling IStyleGallery::LoadStyle fails with an unspecified error for a ServerStyleGallery

Última Publicação: August 25, 2014 No Product Found
Número de ID do Erro NIM001002
EnviadoFebruary 7, 2006
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.1
Versão FixaN/A
StatusFixed

Solução Provisória

The server style gallery doesn’t have an initialized “targetfile” so you need to set it before doing anything. You don’t see this issue with the regular stylegallery because the application sets up the “targetfile” at startup.You need to do it like this:Public Sub Test()Dim pSG As IStyleGallerySet pSG = New ServerStyleGalleryDim pSGS As IStyleGalleryStorageSet pSGS = pSG'TODO - CHANGE THIS TO POINT TO A PATH YOU CAN WRITE TOpSGS.TargetFile = "C:\temp\test.ServerStyle"' TODO - CHANGE THIS TO POINT TO YOUR OWN SERVER STYLE FILE.Dim strStyleFile As StringstrStyleFile = "C:\ArcGIS\Styles\ESRI_Optimized.ServerStyle"pSG.LoadStyle strStyleFile, "Text Symbols"MsgBox pSG.ClassCountEnd Sub

Etapas para Reproduzir

ID do Erro: NIM001002

Software:

  • No Product Found

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download