New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share

Need the Linear Barcode image filename

USCIS purchased 5 developer licenses for ASP.NET Barcode Linear Web Server Control about a year ago. The SW works great and generates the desired barcodes for use in a web application using Symbologies.Code128.

I have a need to get the generated barcode image filename but the property (.imagefilename) returns a blank string instead of the file name.

How do I get the file name of the image?

Operating System: Windows 7 / Windows Server 2008 R2

Application: Visual Studio Web Application

04-28-15     1897 day(s) ago    

  Report Abuse

 

James

Best Answer

This is really implementation-specific to the Microsoft .Net Framework, as this wanted functionality is not directly part of the IDAutomation component.

What I can suggest is implementing a process which saves the barcode image to a file, which then it may be included/embedded in the PDF-creating mechanism your client is using.

With that said, you might also want to look at the properties AllowCustomPaths, ImageLocalPath, and ImageRelativePath to help set a barcode image.

Posted 1897 day(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (4)
By your explanation, it is understandable. Another option* might be to generate barcode images (look at +Using the Control as a DLL to Create Graphic Files on the Server) in a separate action, then include/embed the image in the PDF-creating mechanism your client is using.

*This is outside the scope of our support, but I mention it here to help.

Posted 1897 day(s) ago

(0)
(0)
   Report Abuse
What you say is true, it is implentation specific but I am searching for a better way to use the idAutomation control.

What I can't find is what the method is to actually generate the image and file name. It is not practical (or desired) to wait until a page is rendered for the file to be generated. It will speed up the mailing insert operation to get rid of the aspx page that isused to format and print the insert.


Posted 1897 day(s) ago

(0)
(0)
   Report Abuse
Thanks for the information for the SaveImageAs. Although what I tried did not work, I think if it did it would not provide the needed answer. It looks like file name (default or otherwise) is not generated until the target page with the control is actually rendered. The rendered page is currently being printed from the browser.

The client is wanting to change the functionality such that instead of displaying a web page with the bar code they want the image imbedded in a pdf file for later printing (we are printing USPS mailing inserts). Do we need a different control other than the Linearwebserver control to do this?

Posted 1897 day(s) ago

(0)
(0)
   Report Abuse
It is easier to generate files to a specific drive with a specific name (using the SaveImageAs* method) rather than trying to capture the filename of a cached file.

*Expand the Advanced Server Control Properties and Methods section for general information.

Applies to:
ASP.NET Barcode Web Server Control

Posted 1897 day(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2019 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook