jman
07-23-2006, 12:45 PM
Why Does this Generate a "Wrong operand type." Error message:(In RED)
--Set the unit of measure for the paper
--(206mm wide, 280mm High for a normal 8 1/2 X 11 sheet)
--set the document up
PDFOut.SetUnits("pt")
PDFOut.SetDisplayMode("PDF_ZOOM_FULLWIDTH", "PDF_LAYUOUT_LANDSCAPE")
PDFOut.DisplayPreferences(false, false, false, false, true, false, false)
PDFOut.SetMargins(18, 18, 18)
PDFOut.PrintImage("AutoPlay\\Images\\002BT15.PNG", 100, 100, 400, 0)(This generates an error)
PDFOut.PrintImage("AutoPlay\\Images\\DSC01186.JPG", 100, 100, 400,(this works, 0)
Also If i change the folder directory to Photos\\632762984911093750.png
It generates This Error:"An Unrecognized token '-1.#j' was found."
Do I need to Change something in the Global Functions?
--Create the PDF
PDFOut.WritePDF("C:\\Test.Pdf")
--Print the PDF
--File.Print("C:\\Test.Pdf")
--Let's take a look
File.Open("C:\\Test.pdf", "", SW_MAXIMIZE)
--Set the unit of measure for the paper
--(206mm wide, 280mm High for a normal 8 1/2 X 11 sheet)
--set the document up
PDFOut.SetUnits("pt")
PDFOut.SetDisplayMode("PDF_ZOOM_FULLWIDTH", "PDF_LAYUOUT_LANDSCAPE")
PDFOut.DisplayPreferences(false, false, false, false, true, false, false)
PDFOut.SetMargins(18, 18, 18)
PDFOut.PrintImage("AutoPlay\\Images\\002BT15.PNG", 100, 100, 400, 0)(This generates an error)
PDFOut.PrintImage("AutoPlay\\Images\\DSC01186.JPG", 100, 100, 400,(this works, 0)
Also If i change the folder directory to Photos\\632762984911093750.png
It generates This Error:"An Unrecognized token '-1.#j' was found."
Do I need to Change something in the Global Functions?
--Create the PDF
PDFOut.WritePDF("C:\\Test.Pdf")
--Print the PDF
--File.Print("C:\\Test.Pdf")
--Let's take a look
File.Open("C:\\Test.pdf", "", SW_MAXIMIZE)