[mapguide-users] Print Layout and Resources
Jackie Ng
jackie.ng at aecsystems.com.au
Tue Feb 27 19:30:05 EST 2007
You will need to convert your xml content to an MgByteReader, then call
SetResource() from the MgResourceService to create your resources.
The symbols are a bit trickier. The data portion of the symbol library
resource seems to be a multi-sheet dwf, each sheet containing a particular
symbol.
You need a way to insert a new sheet containing your new symbol/logo into a
dwf and set that dwf as the Symbol Library's data. (I don't know how to do
this...). You then need to call SetResourceData() from the MgResourceService
on your Symbol Library resource.
Hope that helps.
- Jackie
Scott Hameister wrote:
>
> If I want to create a wizard that lets people make their own layouts for
> the
> mappingService to do a GeneratePlot.I have the theory down but can't seem
> to
> figure this out.
>
>
>
> Example:
>
> I'd have a blank XML Print Layout in a directory..
>
> They would answer some Questions about Legend, North Arrow etc, and I
> would
> change the XML file
>
> They would browse an image folder for a logo etc,
>
> I would load the XML file as a resource
>
> Load the Image as a resource (Somehow)
>
> And then call them up using the API
>
>
>
>
>
> Is there a way to take a jpg image and loaded it into a resource that
> could
> be used like the call to the Symbol library or to point an exernal file
> instead
>
>
>
> i.e <Logo>
>
> <Position>
>
> <Left>1.5</Left>
>
> <Bottom>8.5</Bottom>
>
> <Units>inches</Units>
>
> </Position>
>
>
> <ResourceId>Library://FolderName/MySymbolLibrary.SymbolLibrary</ResourceId>
> <---****************Some outside file********************
>
>
>
> And How do I take an XML file and convert it into a Print Layout that I
> can
> call with the API????
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://www.nabble.com/Print-Layout-and-Resources-tf3305144s16610.html#a9195511
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list