Imaging.DrawText proboem
Imaging.DrawText proboem
I use the following code to place a fake footing on a scanned to pdf document.
Dim footer As String = "Scanned Date/Time: " & Now & " FileName: " & ShortDocName & " Scanned By: " & frmMain.lblUser.Text
Imaging.DrawText(footer, DateNamePosX, DateNamePosY, DateNameFontSize)
When I try it on the clients machine or one of mine without visual studio, fake footing does not appear in the document.
I copied the dll's and ocx to the system32 directory and registered then gdpicturepro5.ocx and gdpicturepro5s.ocx.
What else should I do.
Bob
Dim footer As String = "Scanned Date/Time: " & Now & " FileName: " & ShortDocName & " Scanned By: " & frmMain.lblUser.Text
Imaging.DrawText(footer, DateNamePosX, DateNamePosY, DateNameFontSize)
When I try it on the clients machine or one of mine without visual studio, fake footing does not appear in the document.
I copied the dll's and ocx to the system32 directory and registered then gdpicturepro5.ocx and gdpicturepro5s.ocx.
What else should I do.
Bob
Re: Imaging.DrawText proboem
Hi,
What is the value returned by the DrawText method ?
Kind regards,
Loïc
What is the value returned by the DrawText method ?
Kind regards,
Loïc
Re: Imaging.DrawText proboem
The return value is 0 or OK, but no image is drawn. Again it work fine on the development machines.
Re: Imaging.DrawText proboem
Ok,
Please attach the image on which you are trying to draw text.
Also, give real value for DrawText parameters (not variable) for investigation.
With best regards,
Loïc
Please attach the image on which you are trying to draw text.
Also, give real value for DrawText parameters (not variable) for investigation.
With best regards,
Loïc
Re: Imaging.DrawText proboem
The image is any scanned image. I scan a sheet and add the fake footing.
I tried using values instead of variables with the same results.
Have made a new discovery. If i make the scan in black and white rather than color the footing appears.
what can I try next. Again it work on the development machines with both color and black and white scan's
I tried using values instead of variables with the same results.
Have made a new discovery. If i make the scan in black and white rather than color the footing appears.
what can I try next. Again it work on the development machines with both color and black and white scan's
Re: Imaging.DrawText proboem
For me all is working fine.
If you want more assistance, give us a code snippet which reproduce your problem (from image acquisition to text drawing over the image).
With best regards,
Loïc
If you want more assistance, give us a code snippet which reproduce your problem (from image acquisition to text drawing over the image).
With best regards,
Loïc
Re: Imaging.DrawText proboem
I put togeather a small VS project to demonstrate the problem.
Run the program, select the scanner, then scan any document and the footing will appear if not a color scan and will not if a color scan.
can I send you the project via YouSendIt
Run the program, select the scanner, then scan any document and the footing will appear if not a color scan and will not if a color scan.
can I send you the project via YouSendIt
Re: Imaging.DrawText proboem
Hi,
You can send the project at esupport (at) gdpicture (dot) com.
Let me know if I must do something.
Kind regards,
Loïc
You can send the project at esupport (at) gdpicture (dot) com.
Let me know if I must do something.
Kind regards,
Loïc
Re: Imaging.DrawText proboem
YouSendIt will notify of the file ready for you to download. It is a zip of the project
Who is online
Users browsing this forum: No registered users and 2 guests