[Geomoose-users] Print to PDF

Fischer, Brian bfischer at houstonengineeringinc.com
Wed Nov 5 22:31:06 EST 2008


Rick,

 

This is one of the gotcha's with the demo's.  Currently there is only
one configuration.php file for both demo's.  I decided rather than
create the extra files I would need to get both working I would just
leave it working for the county demo.

 

If you want to get the printing working in both demo's you would need to
duplication the configuration.php and print.php files and change the
path in the configuration.php file to reference the state_demo
mapfiles.  Then change the include file in the print.php file to point
to the other configuration file (something like config_statedemo.php).
I don't have the files with me know but if you need an example I could
create one for you.

 

Hope this helps,

Brian

 

From: Moore, Richard J [mailto:richard.moore at mnsu.edu] 
Sent: Wednesday, November 05, 2008 4:37 PM
To: 'geomoose-users at lists.sourceforge.net'
Subject: [Geomoose-users] Print to PDF

 

I am having problems with the Print to PDF in the State Demo example.

 

If I run the Print to PDF in the County Demo application it works
perfectly but when I try it in the State Demo application, I get this
error message.

 

 

Available Printing Formats:

Warning: [MapServer Error]: msLoadMap():
(/ms4w/apps/geomoose/maps_countydemo/./parks/parks_8bit.map) in
C:\ms4w\apps\GeoMOOSE\htdocs\php\print.php on line 177

Warning: Failed to open map file
/ms4w/apps/geomoose/maps_countydemo/./parks/parks_8bit.map in
C:\ms4w\apps\GeoMOOSE\htdocs\php\print.php on line 177

Fatal error: Call to a member function setSize() on a non-object in
C:\ms4w\apps\GeoMOOSE\htdocs\php\print.php on line 178

 

 

 

It seems like it is referencing a path location to the county demo
application as show by the path.  I haven't been able to find a location
that states where to look for the files when it prints.

 

Any assistance would be helpful since it seems like it is a problem with
the State Demo application since the County demo works.  Also I do have
FPDF installed since the County Demo works for me.

 

Thanks,

 

Rick Moore

GIS Specialist

 

Water Resources Center

184 Trafton Science Center South

Minnesota State University, Mankato

Mankato, MN   56001

 

(507) 389-3267

richard.moore at mnsu.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20081105/35379021/attachment.html


More information about the Geomoose-users mailing list