Printing Multi Page PDF Issue Gdpicpro V5
Posted: Wed May 01, 2013 10:40 pm
There was another thread on this subject but the error I am getting is different and could be some kind of compatibility issue with the Win 7 64 machine I am having the issue on ....
Foxpro Code that runs OK .... but only prints first page of PDF
So I need to print multi page pdf and I see we need to set the page range from other posts here so add the two lines of code to do that ..
This does not print anything and print stat returns an error 31 - WrongGdTwainVersion = 31,
What is this error and what do I need to do to fix this?
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?