Page 1 of 1

Printing Multi Page PDF Issue Gdpicpro V5

Posted: Wed May 01, 2013 10:40 pm
by jvanlaar
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

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
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 ..

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
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?

Re: Printing Multi Page PDF Issue Gdpicpro V5

Posted: Wed Jan 30, 2019 6:06 pm
by Gabriela