Imaging.DrawText proboem

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
TheBob
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Imaging.DrawText proboem

Post by TheBob » Mon Feb 08, 2010 8:22 pm

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Imaging.DrawText proboem

Post by Loïc » Tue Feb 09, 2010 5:50 pm

Hi,

What is the value returned by the DrawText method ?

Kind regards,

Loïc

TheBob
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Re: Imaging.DrawText proboem

Post by TheBob » Tue Feb 09, 2010 9:16 pm

The return value is 0 or OK, but no image is drawn. Again it work fine on the development machines.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Imaging.DrawText proboem

Post by Loïc » Tue Feb 09, 2010 9:21 pm

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

TheBob
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Re: Imaging.DrawText proboem

Post by TheBob » Wed Feb 10, 2010 7:54 pm

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Imaging.DrawText proboem

Post by Loïc » Thu Feb 11, 2010 4:55 pm

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

TheBob
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Re: Imaging.DrawText proboem

Post by TheBob » Fri Feb 12, 2010 2:05 am

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Imaging.DrawText proboem

Post by Loïc » Fri Feb 12, 2010 11:06 am

Hi,

You can send the project at esupport (at) gdpicture (dot) com.

Let me know if I must do something.

Kind regards,

Loïc

TheBob
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Re: Imaging.DrawText proboem

Post by TheBob » Fri Feb 12, 2010 7:25 pm

YouSendIt will notify of the file ready for you to download. It is a zip of the project

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests