What does your AppDef look like for that widget? This is working in my map (credit to DM Solutions):
<Widget xsi:type="WidgetType">
<Name>SaveDWF</Name>
<Type>SaveMap</Type>
<Extension>
<Format>DWF</Format>
<PrintLayout>
<Name>First</Name>
<ResourceId>Library://Nanaimo/Apps/NanaimoMap/PrintLayouts/NanaimoMapDef
ault.PrintLayout</ResourceId>
<Scale>10000</Scale>
<PageHeight>8.5</PageHeight>
<PageWidth>11</PageWidth>
<Margins>
<Top>1.5</Top>
<Left>0.5</Left>
<Bottom>0.5</Bottom>
<Right>1.5</Right>
</Margins>
</PrintLayout>
</Extension>
<Label>Save as DWF</Label>
<Tooltip>Click to save the current map as a DWF document</Tooltip>
<StatusText/>
</Widget>
If this doesn't work, all I can suggest is adding a bunch of echo
statements to the code to see what state the variables have at different
points in execution.
Jason
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
DeMerchant
Sent: Thursday, August 14, 2008 09:27
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion Save Map Issues
No idea on the fix, but I can say I have the exact same problem
here....I've yet to really look into what might be the problem - in
hopes that I might be able to sort it out myself.
Andrew
Rock Beans wrote:
I changed the mime type to text and got this output:
<br />
<b>Fatal error</b>: Call to a member function Read() on a non-object in
<b>C:\Program
Files\MapGuideOpenSource2.0\WebServerExtensions\www\fusion\MapGuide\php\
SaveMap.php</b> on line <b>104</b><br />
Any ideas?
The Rock
---------- Forwarded message ----------
From: Rock Beans <[EMAIL PROTECTED]>
Date: Thu, Aug 14, 2008 at 10:30 AM
Subject: Fusion Save Map Issues
To: MapGuide Users Mail List <[email protected]>
I am on the latest SVN release of Fusion and when I click save map I get
a Save/Open dialog now. The problem is the image is only 207 bytes and
not readable by any image program. I tried DWF and the DWF viewer said
it could not open the DWF files as well. What am I missing please? IS
the output buffer or the MIME type not working correctly?
Fusion r1461
The Rock
________________________________
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
--
Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited <http://www.gemtec.ca>
191 Doak Road
Fredericton, NB, Canada
E3C 2E6
<<image001.gif>>
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
