Crystal Reports shows barcode ONLY locally - asp.net

I use Crystal Reports to show an .rpt file in an asp.net page.
When I run both at server, the CR's preview on design software and the WebPage(IE) where the CR viewer is embedded, the reports shows the barcode and can be printed.
(the barcode is a function Bar128AB( *BarTextIn*, *Subset* ) )
BUT when I run it from another computer or from another browser(Firefox, Chrome) on the same server, the barcode shows the input string(BarTextIn) from Bar128AB function and not the result(final barcode) of the function.
The font which is used to represent the barcode is Code 128AB HR, which has restricted embeddability, but I don't mind for exporting it in PDF, just view and print it.
HOW can I fix it?
How can the rest browsers(Firefox, Chrome) on the server show the barcode properly?
How can another computer show the barcode properly?

You need to install a couple of packages in order to show the barcode properly.
Install the latest package of crystal reports
Install this patch for the font with fsType value 0 to achieve installation
Also according to this thread you can try to print the page and see if barcode its works

Try to install Code 128AB HR font on another computer and then to run the report there.
Is it working now? If it is, it means that your solutions need the font to be installed on any client (and I think it is).
If you think this is not the right solution for you, you could turn into javascript barcode tools (this is one).

Related

How to Open PDF in Browser and modify it and save it?

I am thinking about opening a PDF file with some editable fields in the browser , by which i can modify the PDF file / fill information etc and then save that PDF FORM
Please guide me in a right direction ?
I think in your case Rad PDF can work. It is a PDF Viewer and Editor for ASP.NET by which you can open the PDF with editable fields in browser and can even modify the PDF and save it.
Check the link:- https://www.radpdf.com/demo/easy-integration/
and another one is below:-
https://code.msdn.microsoft.com/PDF-Editor-to-Edit-PDF-5fb73b8d
Hope it will work in your case.
Thanks
You cannot. Simple.
PDFs are edited by the native app, in your case may be Chrome, Safari and Internet Explorer. You do not have control on anything that happens when the user edits the PDF in a native app context.
Pdf documents come in many flavors (standards). One of them (FDF) matches your usecase very closely. This particular standard allows you to edit a pdf form, on completion (or some other event) it would send the data back to a server, collect a response, and modify the pdf with the incoming data.
Keep in mind though that this standard is not often used. There may be a good reason for that (not a lot of libraries support it).

Open Pdf with Adobe Reader from Server

i have the next problem. I don't have Adobe Reader in my local machine and i have some Webform that show pdf files in fact i can't see this pdf files for it i need to find some way to open this files using the Adobe Reader from the server. Is that posssible? Somebody could show me how do this? Thanks
It isn't possible to use Adobe Reader to display a PDF to another machine through a web page. If this is just for local testing, try using Chrome or Firefox if you can. These have their own PDF readers separate from Adobe.
If you are trying to actually display the content as a non-PDF format, you may want to look into something that will parse the file into HTML. Mozilla's "pdf.js" is a good example, and might be of use to you. However, I don't think this is necessary. Nearly all users can view PDF files.
Have a look at PDF Js which can render a PDF in a web viewer.

Coded UI Testing in IE - How to upload a file?

With our CUIT tests in Visual Studio we have the problem that we cannot record the Browser Button action in IE. We just get:
C:\fakepath\Document1.txt
But this obviously does not lead to the real document in a playback. And it's not possible to just type the path into the Browse text field anymore.
Just FYI: This applies to the Coded UI Testing Framework in Visual Studio 2010 Feature Pack 2. The recorder only works with IE.
Any ideas?
Not being able to access the file upload control is supposed to be a security feature. I guess you need to step out of your environment and into the windows environment to accomplish anything.
If you use a macro recorder that can playback from command line (like http://www.jitbit.com/macro-recorder/versionhistory/) or a similar means, you may be able to record the missing step here (like a simple tab key hit - provided you have focused on the control before the upload control -, a typed text, and another tab key hit) and start the resulting "batch". Or you can even record a mouse click.
However, if this test runs in other browsers (if I understand you correctly), wouldn't it be safe enough to assume that it runs in IE as well, because after all you are using a standard control?
Actually, turns out I can edit the value "C:\fakepath\Document1.txt" manually in the uitest UIMaps file and change it to a real path. And it works in the reply like this.

Crystal Reports VS 2008 Different Wrapping Behavior

I have a text box which is 7.5" wide and I set Can Grow. Inside the textbox I have placed a TEXT database field. I set the field to use the RTF format. When I export the report to PDF on the developer machine I am able to get the word wrapping where it should be (after the finagling with the right margin). However, when I export the report on the server, I get word wrapping about an inch sooner than on the development machine.
So here is some more information: the PDF of the report is generated by an ASP.NET application on both the development machine (from within VS 2008) and the server; I am using the Crystal Reports VS 2008 runtime.
I have tried a few ideas so far:
I found out that Wordpad does not save the page margins into the RTF document. It always uses the last used settings for the page margins which is 1.25" L-R and 1" T-B.
I tried editing the RTF source and adding the appropiate page margins: \margl720\margr720\margt720\margb720 which sets all margins to 720 twips (0.5").
I tried setting the Wordpad defaults for the page margins to 0.5". This is different for each user though. I have the Application Pool for the ASP.NET application running as a specific user. I tried setting it under that user and no change. Is it possible that the Crystal Report is being generated under a different user? Or that Crystal Reports always uses a specific user for this information?
After the settings on the server had no effect, I set the margins on the development machine back to the default and re-ran the report. This causes the report to have the same problem as on the server. So it has to be something with the Wordpad page margins.
So the question is: how do I get these settings set for the server? Or how can I figure out under which user the Crystal Report is being generated?
It turns out it had to do with the printer drive as Paul suggested. To fix the issue I changed the report to use No Printer. This did not solve the weird wrapping of the RTF by Crystal Reports. To fix that I made the text box that the field was in wider than the page. I had to find how far off the page by trial and error.

Crystal Report in ASP.NET - display image

I am using a Crystal Report on my website to dynamically build a PDF file for download. This is working great. However, now I want to add an image to the report. When I go to Insert - Picture, browse to my image file, and click OK nothing happens, which leads me to believe that I'm adding it incorrectly. How can I do this? Also, does the image need to exist on my web server or is it imbedded in the report?
So you're adding the picture to the report through the Crystal Reports designer?
Possibly the picture is in an unsupported format? Try saving it into another format and add it again, might just work!
As far as I'm aware, the image will be embedded into the report.

Resources