Hi Frank.
Pdf417 is a 2D barcode supplied by IdAutomation (
http://www.idautomation.com/fonts/pdf417 ).
It installs the font(s) into Windows and registers IDAutomationPDF417_6.dll. This allows you to code oPdf = NEWOBJECT("pdf417","pdf417")
So everything works great and I'm writing 2D barcodes and the scans are successful but when the object is initiated, the screen in the vfp program shows a barcode.
This is nothing more than an annoyance but it looks really tacky and I'm trying to figure out how to stop the "newobject()" function from painting this barcode on the screen or just clearing the screen so the user doesn't see it. I would have thought SET CONSOLE OFF would have accomplished it or setting the _screen.picture to a BMP but neither clear the barcode from the screen.
The only way it goes away is when I release the object with oPdf = NULL
Ideas?
> Hi Robert,
>
> I've never heard of a pdf417 object (what is it and where did you get it?), so this is pure speculation, but can you refer directly to the label/picture that this object creates?
>
> Something like this:
>
> oPDF.BarCodePicture = ""
>
> to reset it?
>
> Otherwise, what is the problem with setting the oPDF to NULL?
>
>
> > Hello. I'm new to the foxite site but a veteran vfp programmer.
> >
> > Here's my pbm...
> >
> > If I create a simple .prg that initiates the PDF417 barcode object, it paints a barcode onto the screen and no matter what I do to get rid of it, it won't go away until I release the object. Here's my example..
> >
> > TEST.PRG
> > ---
> > CLOSE ALL
> > CLEAR ALL
> > CLEAR
> > SET TALK OFF
> > SET CONSOLE OFF
> > SET NOTIFY OFF
> > SET SAFETY OFF
> > RELEASE oPDF
> > PUBLIC oPDF
> > oPDF = NEWOBJECT("pdf417","pdf417")
> > *--- AT THIS POINT A LABEL IS PAINTED ONTO THE SCREEN (ie you see a barcode on the screen)
> > *.. no matter what I do at this point, I can't clear the barcode label off the screen until I do this
> >
> > oPDF = NULL
> >
> > *.. once I set it to null, the "picture" of the barcode label disappears.
> >
> > I've tried setting _screen.picture = "mypicture.bmp"
> > This DOES set the background to my picture but the label on the screen is on top of my picture so it's still visible.
> >
> > Any ideas?
> >
> > Robert
>
>
>
> Frank.
>
> Frank Cazabon
> Samaan Systems Ltd.
>
www.SamaanSystems.com/