Click here to Skip to main content
15,998,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using SigPlusNET in a DevExpress winforms report in an XRPictureBox control. it's really not important that it's a DevExpress control but that's what I'm using.

It works completely fine. However, I've got a horizontal line on the report that I would like to show through the signature box so that it looks like the person signed on a line, so that if there's a "j" or "g" or other such letter in a signature it doesn't have to be above the line. If I position the picture box above the line it's all good. But if I overlap them, the box hides the line. I tried setting the sp.BackColor to transparent but it won't accept that. Does anyone know if this is possible with the SigPlusNET object?

Thanks in advance,

AR

What I have tried:

Here's my code:

<pre lang="vb">Dim driverSignatureString As String = Me.GetCurrentColumnValue("DriverSignature").ToString

Dim sp As SigPlusNET = New SigPlusNET
sp.ClearTablet()
sp.SetSigCompressionMode(1)
sp.SetJustifyMode(5) '5 is justify and zoom signature (center of control)
sp.SetJustifyX(12) 'this is really just padding
sp.SetJustifyY(12)
sp.SetImageXSize(300)
sp.SetImageYSize(45)
sp.SetImagePenWidth(5)
sp.SetDisplayWindowRes(True)
sp.SetSigString(driverSignatureString)

Me.xrPicDriverSignature.Image = sp.GetSigImage()
Posted
Updated 10-Feb-19 5:33am

1 solution

What's the "z-order" of the line?

Usually it's just a question of the order in which controls are added to the "visual tree" that determines which control (part) overlays another, if any; and that is what one sees.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900