[mapguide-users] Printing

Martin Fafard martin.fafard at geoprojection.com
Tue Nov 20 11:33:03 EST 2007


Dennis,

Is it possible to have your scribblepdfdoc.ashx?
Thank you

Martin F

Chris Tallman a écrit :
> Dennis,
> I like your approach, Does it allow you to print on large format to a 
> scale?
> Chris
>
> ------------------------------------------------------------------------
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Jonio, 
> Dennis (Aviation)
> *Sent:* Monday, November 19, 2007 10:50 AM
> *To:* MapGuide Users Mail List
> *Subject:* RE: [mapguide-users] Printing
>
> Chris,
>
> I decided before even starting on MGOS to output to PDF file format. 
> Let Adobe Reader handle all the printing output options and the 
> zooming and the panning and the …. options,options,options.
>
> All my stuff is .NET specific. My boss has ‘guidelines’ after all …
>
> I have been producing PDF’s using “iText” for a couple years now and 
> irrespective of what I think the users love it. I will not burden you 
> with all the details but I am use “ikvm” in conjunction with “iText” … 
> (this way I am able to stay up to date with “iText”). There is however 
> a .NET version of out there that is somewhat behind Bruno’s work.
>
> The guts of what I have done relies on RenderMap .. (MgByteReader 
> byteReader = renderingService.RenderMap(map, selection, 
> mapCenterCoordinate, mapScale, width, height, color, 
> imageflavor.ToUpper());
>
> I would be glad to share but I have not a clue how to go about this 
> within this forum.
>
> …. As an example ….
>
> I have done it using http “ashx” request and the latest iteration uses 
> a ajax .net 1.0 webmethod call from javascript.
>
> function ScribblePDF()
>
> {
>
> tmp_control = document.getElementById("sessionName");
>
> SESSION = tmp_control.value;
>
> tmp_control = document.getElementById("mapName");
>
> MAPNAME = tmp_control.value;
>
> w = window.open("scribblepdfdoc.ashx?SESSION=" + SESSION + "&MAPNAME=" 
> +MAPNAME + "&WIDTH=" + SCRIBBLEPDF_WIDTH + "&HEIGHT=" 
> +SCRIBBLEPDF_HEIGHT + "&TYPE=" +SCRIBBLEPDF_TYPE 
> ,"pdfmap","toolbar=no,status=no,width=550,height=720,resizable=yes,scrollbars=yes",false);
>
> try {
>
> w.focus();
>
> } catch(Exception) { }
>
> }
>
> Let me know if you wish additional info …
>
> dennis
>
> -----Original Message-----
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Chris 
> Tallman
> *Sent:* Monday, November 19, 2007 9:28 AM
> *To:* MapGuide Users Mail List
> *Subject:* [mapguide-users] Printing
>
> Morning,
>
> Has anyone built a printing app for MGOS? I have a client that would 
> like to be able to print on a large format plotter. I've not worked 
> with the printing functions and wondered if someone had already built 
> something that gives printing options and would be willing to share 
> with the group.
>
> Thanks,
>
> Chris
>
> ------------------------------------------------------------------------
>
> E-mails are automatically scanned for viruses using McAfee.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   


More information about the mapguide-users mailing list