Link to home
Start Free TrialLog in
Avatar of SteveB2175
SteveB2175

asked on

How can I include barcode font with published .net application ?

I have developed a Crystal Report using Visual Studio 2005 (VB .net).  The CR has barcodes which I created by specifying a barcode font named C39HRP36Dltt.  The app runs fine on my PC, as they all do... :) :)  But when I published the app other users don't have the barcode font.

I've located the font on my PC, it's in the C:\Winows\Fonts directory.

How can I include the font with my project so that anyone who uses the application will have the font ?

Thanks,

-Steve
Avatar of indianguru2
indianguru2
Flag of India image

The best way is to use the Setup Project.
In that you can deploy your application as well as fonts directly to the Fonts folder where ever it is located.
Avatar of SteveB2175
SteveB2175

ASKER

Sorry but I don't know enough to understand your answer.

I've published the application to a file path on our server.  Users run setup.exe to install the app, then everytime I re-publish they get an updated version.

Can you define what you mean by using a setup project, and how I would include the font in the project ??

Thanks.
You use Setup to deploy your application.
I hope you are using Visual Studio 2005 Setup Project.
Just confirm that then may be i can guide you.
yes, I'm using VS2005, and yes, I'm using setup to deploy the app.
ok
In the Setup, Right Click on the Setup Project -> View -> File System.
When the screen opens, right Click on "Files on the Target System"->New Special Folder -> Fonts FOlder
In that add your font there.
Rebuild the Setup and deploy it at your users end.
It will automatically deploy the Font in the Users Fonts Folder.
ASKER CERTIFIED SOLUTION
Avatar of indianguru2
indianguru2
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, but it looks like I gave you some bad information.  I am not using a setup project, I'm using the "ClickOnce" method of deployment.  I really need to stay with ClickOnce, as this allows for automatic updates to the program (which happen frequently).

Any suggestions based on this new information ?
indianguru2:

Based on your comments I was able to do some reading on ClickOnce deployment vs a Setup program for deployment.  It doesn't look like there is a way to include a font in ClickOnce, so I created a setup program that doesn't do anything, but requires the barcode font.  That is the poor mans way of automating the distribution of a required font :) :)

idautomation:
Thanks for the suggestion, but $595.00 isn't in the cards for me right now.