Custom paper size in crystalrepots viewer - c#

I have an application where I need the user to be able to print to a network printer through a print server.
The paper being used is 8 * 8 form feed paper. When I print to the printer from my development machine it works fine and I can print multiple documents with perfect alignment.
If I print from a test machine which has the paper size defined in the print server options with the same name as the one in the report the application prints to the alignment of letter size of 8 by 11.
Is there anything I am missing?

-- I would comment instead of answer, but I don't have enough reputation --
Based on the description of the problem and your recent comment, it sounds like this may not be an issue with Crystal, as much as a problem with the client/user level printer configuration.
Are you able to print anything using the 8 * 8 using the test machine? It is just the Crystal Report that isn't aligned properly?
One way to test whether crystal is operating correctly is to export to pdf from the test machine, or print to pdf - this will verify whether crystal reports is properly retaining the page configuration.

Related

Barcode Font Won't Work Properly On Other Devices CrystalReports C#

I'm developing a software to print barcode lables using CrystalReports and c#, for the code I used a dataset with 4 fields, one for the barcode, one for the product name, one for the price and the last one for the number of labels, then I designed the report and I passed the data from the dataset. Every thing works perfectly on my machine, in other machines however, every thing looks good except that the barcode font doesn't work!!!
The font that I'm using: IDAutomationHC39M (Free Edition)
You will need to install the font on the server. You probably already installed it locally (i.e. you dragged it into the font folder, or right-clicked and selected "Install Font").
The font needs to be on the machine the report runs on.

Set Report Size on Crystal report

i am using windows 10.
i am trying to create a report for continuous form (Half Of A4), i set manually from device and printer, so i set printer server like this.
then i change page setup on CR to vpc (name of paper where i create on printer server) like this..
then i tried it with different way :
i preview the report, than print.
with out run my application. the print result was great. just like i want.
i run my application, preview my report with Crystal REport viewer tools, but my report become landscape. not protrait.
see...
what must i do?
yes, after a week,finally i found the answer, we need to set default paper to our customer paper.
just that.

Emulate a printer in pc

I have made an desktop application using C# to make ID card .And i am required to add functionality of printing an ID card .Basically i just make an image in a win form which will be eventually printed using.
But as i have no printer,i can't test my code to see if it prints something.
Is there any emulator or software that emulates a printer in windows,so that i cant test my application?
This is a sample what i need to print.It wiil be in a win form.
And another thing. How can i maintain size of the id card while printing. Say id card size should be in 2inch * 3.5inch. How can i make sure it will print same size?
You can use the Microsoft XPS printer driver that ships with Windows (since Vista, but available for Windows XP)
The XPS Document Writer allows you to create .xps files using any
program that you can print from in Windows. Print to the XPS Document
Writer when you want to create, send, and share or publish documents
that you do not want other people to modify, or when you want to print
a document or display it online exactly as it appears on your screen.
It's also a good idea to create an XPS document for files that contain
graphics or illustrations that might otherwise display differently in
print than online or on computers with different monitors.
Once you click OK, you're prompted for the file path to save it to.
Try print to PDF file to check that Your application works. For example You can use "PDF Creator" under Windows OS's. It is the easiest way.

TVS RP-45 roll paper printing

I have a receipt made using Crystal Reports where the page is 4 inch wide and the height should be dynamic. I set the height to 2 inches, because I don't know how to make it dynamic. The printer is a TVS RP-45 Justbill printer.
The printer is ejecting paper after printing. How do I stop this from happening?
Any solution besides Crystal Reports would be helpful. The program is written in C# .NET 2.0 Winforms and connects to a SQL Server 2005 database.
Report Header Section
Bill no : 101
______________________________________________
Detail Section
Item Code Qty Amount
[ItemCode] [Qty] [Amount]
______________________________________________
Report Footer Section
Grand Total [GrandTotal]
______________________________________________
The Report Footer Section is using around 2 inches so I set the Height of the paper to 2 inches. This did not solve the problem. The paper height is now 2 times what it should be if there is more than 1 item.
The printer uses roll paper and it should feed more paper proportionally with the number of items sold.
Please help me solve this without wasting paper.
I'm going to suggest something a little different.
Create a new document in Notepad on Windows or a plain text editor on other OS's.
This document (.txt) should just contain one line: TEST_LINE_1
Send that document to your printer and see if the same after print feed continues.
If it continues to feed after the single line of print:
Check settings as follows ( I know you said you've already checked ):
From the manual:
[ http://www.tvs-e.in/pos/pdf/RP-45%20User%20Manual.pdf ]
To set the factory settings of the printer, first press FONT, Line feed and
PRINT buttons together and then switch ON the printer using ON/OFF
switch.
Usually you have to hold those buttons while switching it off and back on - hold until the printer prints its config off.
If you can post back with what the print out says word for word that would be good.
If it doesn't feed after the single line:
Your design is most likely too wide for the format/internal limits of the paper width and it's wrapping around onto a new line for every line you have.
Are you able to post a photo of what is being printed with how much paper it's on-feeding by?
Try printer on a different computer or laptop if possible with single line text file (as above) or with your custom report job - is it the same output?
If the printer is installed as a USB device: Remove all traces of the driver files and completely uninstall it as a printer - reinstall fresh copies and see what happens - the same?
I appreciate some of these things always 'seem obvious' when you're up against a problem but it does help to start over with the most basic of things..
Just remove headers and footers, It will work fine.

Best font for POS printer in WPF C# App

I have developed an application in WPF and C# as client requirement. Now I am facing problem in bill printing. Printer is WEP DR-400 series and I am using "FlowDocument" to preview bill and printing. Now my client wants these issue to solve;
Printing is slow than previous Foxpro based app
Numbers printed on bill creates confusion like 8,9 and 6 appears quite same.
I don't know how to solve these problems, for 2. i have "MS Gothic" with 12 then "Segoe" with 13 font size in FlowDocument after client request. My font selection is constrained by page width (i need to print 5 cols with Item Name which should be displayed in one line).
Any help would be appreciated!!!
POS printers are almost exclusively used in their native dot-matrix mode. You send the strings to print directly to the printer, bypassing the printer driver. The font you'll get is the one that's baked into the printer's firmware. Typically mono-spaced and optimized to work well with the rather restricted output capabilities of a typical POS printer. The code you need is in this KB article.
When you use the printer driver, the printer is switched into graphics mode by the driver. That makes them very slow.
With regard fonts, Georgia is good in distinguishing digits at small point sizes. (Although at 13 points, you shouldn't get a problem with any font.)
As a fully interpreted language, FoxPro is not terribly quick although runtime has a low memory footprint. Could your client benefit from more memory?

Categories