mibuso.com

Microsoft Business Solutions online community
It is currently Thu May 23, 2013 9:53 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 110 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next
Author Message
 Post subject: Re: Barcode generator v2
PostPosted: Mon Feb 06, 2012 11:03 am 
Offline

Joined: Fri Feb 17, 2006 10:19 am
Posts: 16
Location: new delhi
Country: India (in)
Can anyone know how the error in nav 2009 while using barcode generator how can be resolved.I am getting bellow error:


'you cannot use the file C:\WINDOWS\Temp\bild.bmp beacuse it is already in use'

I am using the following code :


ltxtParam := 'D:\Navibar.exe '+"Shelf Label"."Barcode No." +'{'+
'01' +'{'+
'120'+'{'+
'60'+'{'+
'C:\WINDOWS\Temp\Bild.bmp';

"Shelf Label".Picture.IMPORT('C:\WINDOWS\Temp\bild.bmp');//C:\WINDOWS\Temp //'c:\temp\bild.bmp'


CREATE(lautWSHOM);
lautWSHOM.Run(ltxtParam);

CLEAR(lautWSHOM);


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Mon Feb 06, 2012 5:13 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
follow this..
viewtopic.php?t=1789&postdays=0&postorder=asc&start=37

What's the automation trying to do?

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: Barcode generator v2
PostPosted: Tue Feb 07, 2012 10:27 am 
Offline

Joined: Fri Feb 17, 2006 10:19 am
Posts: 16
Location: new delhi
Country: India (in)
Hi harry,
thanks for your response The automation i am using to print the shelf labels this error i am getting when the the items exceed more than 10.sometimes it will work fine but the error saying file in use comes any time.


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Wed Feb 08, 2012 1:01 pm 
Offline

Joined: Fri Feb 17, 2006 10:19 am
Posts: 16
Location: new delhi
Country: India (in)
Hi harry ,

still i am facing same issue of file in use.can you plz tell me how to resolve the issue.I am using this barcode generator to print shelf label reports in nav 2009.


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Wed Feb 08, 2012 3:46 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
It's hard to say when you post that it works sometimes. The only time I see the file is in use message is when a Close command isn't being used. We can't see all your report so there are things you have to do on your own. Take it in steps..ie 1-does it create the barcode image file? If so is it importing when requested. If calling more than one item am I clearing previous values. You should be able to figure out why it works sometime.

Also the download section has other barcodes creators if you can't figure this one out. Just search the download section for barcode.

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: Barcode generator v2
PostPosted: Wed Feb 15, 2012 11:59 am 
Offline

Joined: Thu Dec 27, 2007 9:03 am
Posts: 101
Location: Chennai
Country: India (in)
Hi,

Barcode image is exporting as too small (79 X 16). But I need to increase Width and Height of the Barcode Image.
I want to increase as (160 X 32). Where should i need to change the code for that.
Kindly help me to solve this issue.

Code is,

Code: Select all
//http://en.wikipedia.org/wiki/BMP_file_format - BMP header w/o any tricks
//Can be changed if needed
CharInt := 'B' ;
OutputStream.WRITE(CharInt, 1);
CharInt := 'M' ;
OutputStream.WRITE(CharInt, 1);
OutputStream.WRITE(54 + Rows * Cols * 3, 4);
OutputStream.WRITE(0, 4);
OutputStream.WRITE(54, 4);
OutputStream.WRITE(40, 4);
OutputStream.WRITE(Cols, 4);
OutputStream.WRITE(Rows, 4);
OutputStream.WRITE(65536 * 24 + 1, 4);
OutputStream.WRITE(0, 4);
OutputStream.WRITE(Rows * Cols * 3, 4);
OutputStream.WRITE(2835, 4);
OutputStream.WRITE(2835, 4);
OutputStream.WRITE(0, 4);
OutputStream.WRITE(0, 4);




Divya

_________________
Victory is sweetest when you've known defeat


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Wed Feb 15, 2012 6:17 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
What does your code have to do with the barcode generator? If you follow the link from a few posts above you will see the barcode generator has settings for width & height.

If your post is just a miscellaneous barcode question then start a new topic.

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: Barcode generator v2
PostPosted: Thu Feb 16, 2012 5:08 am 
Offline

Joined: Thu Dec 27, 2007 9:03 am
Posts: 101
Location: Chennai
Country: India (in)
Hi, Im using same Barcode Generator V2 for creating barcode as Image. But my question is, im going to change the code to increase width and height of the barcode image.

_________________
Victory is sweetest when you've known defeat


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Thu Feb 16, 2012 6:21 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
Divya wrote:
But my question is, im going to change the code to increase width and height of the barcode image.

That's a statement not a question and by looking at the code below, what are you not understanding?
just change the values of the ones marked (width in pixel & hight in pixel)

Code: Select all
OnAfterGetRecord()
IF Item."Item UPC/EAN Number" <> '' THEN BEGIN
CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
    'i:\navision attain\Navibar.exe',       // Program location
    ' ' + Item."Item UPC/EAN Number"+'{',   // code to generate from Nav
    '05'+'{',                               // barcode type "code" you want
    '120'+'{',                             // width in pixel
    '50'+'{',                               // hight in pixel
    'c:\temp\barcode.bmp'));      // destination for the .bmp-file
Picture.IMPORT('c:\temp\barcode.bmp');
END;

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: Barcode generator v2
PostPosted: Fri Mar 02, 2012 1:59 pm 
Offline

Joined: Fri Mar 02, 2012 12:27 pm
Posts: 2
Country: Germany (de)
Hi,

i think i need a little help :)

Our Code

Code: Select all
IF Item.EAN <> '' THEN BEGIN
ok:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
    'C:\Programme\BarcodeNAV09\Navibar.exe',  // Programm
    ' ' + Item.EAN +'{',                                  // code to generate
    '01'+'{',                                                // barcodetype
    '120'+'{',                                              // width in pixel
    '60'+'{',                                               // high in pixel
    'c:\temp\bild.bmp'));                            // destination for the .bmp-file

Picture.IMPORT('c:\temp\bild.bmp');
END;


---------------------------
Microsoft Dynamics NAV
---------------------------
The file name "c:\Navibar.exe 617075400200{05{120{60{c:\temp\bild.bmp" contains a character that may not be used.

Please check the file name. You can find additional information on file names in the documentation for your operating system.

---------------------------
OK
---------------------------

anyone have any ideas?

Many thanks

PS. We use NAV09SP2 -

When saving the message comes

Function 'SHELL' is deprecated for Microsoft Dynamics Navision.

Are the SHELL Command not supported?


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Fri Mar 02, 2012 6:14 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
How about Windows Automation instead of shell:

See here: viewtopic.php?t=12417

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: Barcode generator v2
PostPosted: Fri Apr 27, 2012 1:07 pm 
Offline

Joined: Fri Apr 27, 2012 1:02 pm
Posts: 1
Country: Netherlands (nl)
I have something really strange.
I have navibar running on a Windows 7 computer, when I run the command : navibar 8717529007107{01{240{120{c:\temp\8717529007107.bmp{true it create's the barcode image but it does not show the number.
When I do the same thing on a other computer running Windows 7, it works.

Does anyone have a idea?


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Thu May 03, 2012 3:18 pm 
Offline

Joined: Thu May 03, 2012 2:49 pm
Posts: 5
Country: Netherlands (nl)
dennist wrote:
I have something really strange.
I have navibar running on a Windows 7 computer, when I run the command : navibar 8717529007107{01{240{120{c:\temp\8717529007107.bmp{true it create's the barcode image but it does not show the number.
When I do the same thing on a other computer running Windows 7, it works.

Does anyone have a idea?


Hi DennisT,

Our problem is similar to yours.
When setting the last parameter to {true or left blank tiny litte dots appear below the barcode image instead of readable text. When set to {false the dots disappear.

It is the latest version of navibar, downloaded from the download section.

Could it be something with missing fonts. Although Navibar creates an image, it might use a font to generate the readable text before creating an image. Or could it be that the barcode.ocx is not allowed by the security settings. Or could it be a conflict with Visual Basic (Navibar uses msvbvm50.dll).

Thanks for any other suggestions.


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Wed Oct 03, 2012 2:56 pm 
Offline

Joined: Wed Jan 06, 2010 12:15 pm
Posts: 24
Country: Switzerland (ch)
:D


Top
 Profile E-mail  
 
 Post subject: Re: Barcode generator v2
PostPosted: Mon Oct 15, 2012 10:34 am 
Offline

Joined: Wed May 27, 2009 10:27 am
Posts: 1
Hi Techies,

I am getting the foolowing error message. I have copied the application on the specified path and I am using below code.
Can anybody help?

CODE:
ok:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
'C:\Windows\navibar.exe',
' ' + Item."No."+'{',
'08'+'{',
'120'+'{',
'60'+'{',
Item."Barcode Pic"));

ERROR:
---------------------------
Microsoft Dynamics NAV Classic
---------------------------
The operating system cannot find the file "C:\Windows\navibar.exe 1100{08{120{60{ " .

Verify that the drive, directory, and file names are correct.

---------------------------
OK
---------------------------


Thanks,
Deepak


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 110 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: