Solved Web Browser Control Save Image (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:47
Joined
May 7, 2009
Messages
19,245
i forgot...
Font Code128.ttf should be installed in your system in order
for the Excel to create the 128 barcode.

the font is in tbl_Font (as attachment).
when you open Form1, it will check if the Font is already installed.
if it is not, it will be installed automatically (silent install).
 

Attachments

  • Barcode Database.accdb
    764 KB · Views: 95

oxicottin

Learning by pecking away....
Local time
Today, 14:47
Joined
Jun 26, 2007
Messages
856
UPDATE: from below post... After running I got the error below, so I went into my %userprofile%\AppData\Local\Temp folder and deleted the .tff file that was there and ran again and it worked? I seems it allowed me to put the .tff file there but wont allow me to delete it?



@arnelgp I'm testing it at work and I think I'm blocked from adding the .tff, I'm getting the error and debug line attached.

Capture.PNG

Capture2.PNG
 
Last edited:

Gasman

Enthusiastic Amateur
Local time
Today, 19:47
Joined
Sep 21, 2011
Messages
14,310
That is trying to delete the file? :(
 

theDBguy

I’m here to help
Staff member
Local time
Today, 11:47
Joined
Oct 29, 2018
Messages
21,474
I'm testing it at work and I think I'm blocked from adding the .tff, I'm getting the error and debug line attached.
So, it looks like you don't have permission to delete files from that folder. But, are you allowed to create files in it? Try simply commenting out that "Kill" line and see if the error moves elsewhere or if it goes away.
 

oxicottin

Learning by pecking away....
Local time
Today, 14:47
Joined
Jun 26, 2007
Messages
856
@theDBguy I can delete and add to the temp folder, for some reason when I tried to manually delete the file I got a message it was being used so I stopped Excel process and was able to manually delete. Even though I had Excel closed, there were a few Excel processes running...

Anyways, its working now.... Thanks!
 

oxicottin

Learning by pecking away....
Local time
Today, 14:47
Joined
Jun 26, 2007
Messages
856
@arnelgp Hay can you give me another hand with this? I been playing with the examples you have given and I am getting an error 1004 Range Class failed and I cant figure out why? The username get username works but I get the error when trying to run the get password I get the error and debug takes me to

sht.CreatePasswordImage

Which thats in the Excel public function for that barcode. I went over this 1,000 times and cant figure out why.

error.PNG
 

Attachments

  • TEST_v1.accdb
    636 KB · Views: 78
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:47
Joined
May 7, 2009
Messages
19,245
you use 1 sheet for all generation of your 128 code.
to test first, delete 128_CodeWorkbook.xlsm from Temp folder.
on Immediate window in VBA:

Kill Environ$("temp") & "\128_CodeWorkbook.xlsm"

run frm_Main.
 

Attachments

  • TEST_v1.accdb
    644 KB · Views: 86

Users who are viewing this thread

Top Bottom