Hello,I am stumped on this crazy AlivePDF printing. I think my trouble is with my asp page. I have tried numerous asp/aspx pages, but seem to get the same error. I am not terribly familiar with using asp/aspx pages, so that doen't help any. Is there something special I need to do to make the asp/aspx file work?http://gis.coweta.ga.us/cctax/index.html <--Here is my site.The print button is in the upper left hand corner - kind of hidden...Here is my mxml... import org.alivepdf.pdf.PDF;
import org.alivepdf.images.ImageFormat;
import org.alivepdf.display.Display;
import org.alivepdf.colors.RGBColor;
import org.alivepdf.fonts.FontFamily;
import org.alivepdf.saving.Download;
import org.alivepdf.saving.Method;
import org.alivepdf.fonts.Style;
import org.alivepdf.layout.Size;
import org.alivepdf.layout.Orientation;
import org.alivepdf.layout.Unit;
// Begin - Print
private var myPDF:PDF;
private function doPrintPDF():void
{
var date:Date = new Date();
var w:Number = myMap.measuredMinWidth;
var h:Number = myMap.measuredHeight;
w=w+10; // adjust width of myMap in order to fit print
myPDF = new PDF(Orientation.LANDSCAPE,Unit.POINT,
new Size([h+80,w+10],"dynamicSize",[(h+80)/96,(w+10)/96],[(h+80)*3.779527559,(w+10)*3.779527559]));
myPDF.setDisplayMode(Display.DEFAULT);
myMap.scaleBarVisible = true;
myMap.zoomSliderVisible = false;
myPDF.addPage();
myPDF.setFont(FontFamily.ARIAL, "B", 18);
myPDF.addText("Coweta County, GA", 10, 35);
myPDF.setTitle("CowetaCountyGIS");
myPDF.setFont(FontFamily.ARIAL, "B", 12);
myPDF.addText(date.toDateString()+" "+date.toTimeString(), 10, h+66);
myPDF.addText("Developed by Coweta County GIS", w-190, h+66);
myPDF.lineStyle(new RGBColor (0x000000), 1, .3, 1,CapsStyle.SQUARE, JointStyle.MITER );
myPDF.drawRect(new Rectangle (10,50,w-10,h));
try
{
myPDF.addImage(myMap,10,50,0,0,ImageFormat.JPG);
}
catch (error:Error)
{
Alert.show(error.message.toString());
}
myPDF.save(Method.REMOTE, "http://gis.coweta.ga.us/CreatePDF/cctax/default.aspx",Download.INLINE,"myMap.pdf");
myMap.zoomSliderVisible = true;
}