Foxpro Code that runs OK .... but only prints first page of PDF
Code: Select all
lcjpgfullpath = lcjpgdir + alltrim(fccompart) + "\" + alltrim(ffromlot) + ".PDF"
if file(lcjpgfullpath)
white = 0xFFFFFF
black = 0x0
imagefile = oGdviewer.DisplayFromPDFFile(lcjpgfullpath)
numofpages = ogdviewer.PageCount
oGdviewer.PrintImageFit()
mymes = ogdviewer.printgetstat()
WAIT WINDOW mymes
oGdviewer.CloseImage()
endif
Code: Select all
lcjpgfullpath = lcjpgdir + alltrim(fccompart) + "\" + alltrim(ffromlot) + ".PDF"
if file(lcjpgfullpath)
white = 0xFFFFFF
black = 0x0
imagefile = oGdviewer.DisplayFromPDFFile(lcjpgfullpath)
numofpages = ogdviewer.PageCount
oGdviewer.PrintSetFromToPage(1,numofpages)
oGdviewer.PrintImageFit()
mymes = ogdviewer.printgetstat()
WAIT WINDOW mymes
oGdviewer.CloseImage()
endif
What is this error and what do I need to do to fix this?