Changes between Version 8 and Version 9 of CodeSamples/ASP.Net/ScribbleApp


Ignore:
Timestamp:
Nov 24, 2008, 2:45:44 PM (15 years ago)
Author:
amorsell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSamples/ASP.Net/ScribbleApp

    v8 v9  
    153153To use this package: unzip to a folder of your choice.  Create a new virtual directory in IIS called Scribble under your existing mapguide virtual directory.  Open your web layout in Studio and create a new Invoke URL custom command that points to ../Scribble/scribble.aspx with the task pane being the target.  Add this custom command to your task bar menu or toolbar.  Open your layout and invoke your custom URL.
    154154
     155== Alternative PDF Generation ==
     156
     157For those of you who use ScribbleR2 I have generated an alternative
     158MaterializeMapPDFPage method.
     159This will produce three(3) images and one(1) text page in the generated PDF
     160file.
     161{{{
     162        byte[] forPdf1 = MaterializeMapImagePage(session, mapname, width, height, imageflavor);
     163       
     164        byte[] forPdf2 = MaterializeMapImagePage(session, mapname, System.Convert.ToInt32(Math.Ceiling(width * .65)), System.Convert.ToInt32(Math.Ceiling(height * .65)), imageflavor);
     165       
     166        byte[] forPdf3 = MaterializeMapImagePage(session, mapname, System.Convert.ToInt32(Math.Ceiling(width * .40)), System.Convert.ToInt32(Math.Ceiling(height * .40)), imageflavor);
     167}}}
     168
     169Preferences are set in the output PDF to show thumbnails and Fit.
     170
     171The fourth(4) page is the text contents of the Scribble markup layer.
     172(centroid of geometry)
     173
     174If you have made no changes yourself you should be able to rename the
     175existing MaterializeMapPDFPage method that is in scribblemethodsmgr.cs, copy
     176and paste the contents of the attachment and you should be good-to-go.
    155177
    156178
     179
     180