Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thank you again! I can't tell you how much I and my company appreciate what you've done! I love this place!..."

Geography

Where in the world do Tek-Tips members come from?
Buzz1off (TechnicalUser)
14 May 12 14:19
A previous post (April, 2010) indicated you could create a calculated field with asterik (*) in front of and behind the dynamics field so the scanner would recognize the barcode font. The instructions were very simple and clear. I tried this, with a variety of tests and I keep getting an error when I try to print the report. The only way to eliminate the error is to delete the new calculated field. We are using MSDynamics 10, and we need to print a scannable barcode on the packing lists for our customers. Has anyone tried the suggestion and got it to work?
Buzz1off (TechnicalUser)
14 May 12 17:01
I should include how the Calcualted Expression is displayed:

# "*" + popPOLineRollupTemp.Item Number + "*"

The # represents CAT (concatenate), of course. I tried with and without the + between the constant and the field, and it doesn't make any difference. The original tip was written by VicRosenberg on Apr 8, 2010 for smcpartlin. It looked correct; however, I cannot make it work!
LyleU (Vendor)
14 May 12 22:22
What error message are you getting when you run the report?

Lyle
----
"For every expert, there is an equal and opposite expert." - Arthur C. Clarke.

Buzz1off (TechnicalUser)
15 May 12 9:23
Sorry, I though I mentioned this. The error message is "Error in Equation" (equation name). Unfortunately, I am not told what the error is.
DavidMizzou (Programmer)
16 May 12 17:32
# "*" + popPOLineRollupTemp.Item Number + "*"
I believe you are concatinating a number with a string. Or it could be the pluses +

Try this...
"*" # LNG_STR(popPOLineRollupTemp.Item Number) # "*"
Buzz1off (TechnicalUser)
17 May 12 11:19
Thanks, David... we are getting closer. I had to remove the LNG_STR because the field is already a string field. I no longer get an error when trying to print the report; however, we were not able to scan the printed barcode. To make sure the calculated result is correct, I changed the font back to the default generic Helvetica and printed the report. I get an asterisk at the beginning of the field; but, not at the end.

Example for part number ABC79000654, it now prints as *ABC79000654. In order for the Code 39 barcode font to work, there needs to ba a start and stop character; i.e., the asterisk (*). In other words, the number should print as *ABC79000654*, not *ABC79000654. So, although I am getting a correct start character (*), I am not getting the stop character (*) at the end of the string field.

We are about hald way there. Any suggestions?
Helpful Member!  DavidMizzou (Programmer)
17 May 12 11:23
You might have to trim the string field. Try Strip in the System-defined Functions
Buzz1off (TechnicalUser)
17 May 12 12:06
Thank you, David. Adding STRIP worked. We are now able to scan the field on the report.
Buzz1off (TechnicalUser)
17 May 12 12:51
Thank you, David. Adding STRIP worked. We are now able to scan the field on the report.
DavidMizzou (Programmer)
17 May 12 12:54
Excellent. Glad I could help!

I have been wrestling with my own Report Writer issue and those areas are fresh in my mind.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close