Label Printer with Crystal Reports - crystal-reports

I have an Epson TM-L60 Label printer and I'm trying to make it cut the paper after printing a report label made in Crystal Reports (from Visual Studio). I have to do it programatically because it's an old printer and driver settings do not allow me to set options like "single label cut".
Is there perhaps a command I can use? But how do I send it from code?

According to the manual you print a capital F in the font size 10 and with a font name of "control". I would have thought if you put an F where you want the cut to happen, in that font size and name it may work. You'll have to try!

Related

Fillable Pdf multi-line, Allow rich text formatting in Acrobat Pro DC: but it ignores line spacing/leading set in More

I'm on Win10, using Acrobat Pro DC 2021.011... to edit and Reader DC (same version) to test.
From experience and from reading forums etc, forms in these apps are maddening... but I have not been able to find any discussion (or solutions) to the following behavior...
The form I'm building for other employees' use has a large edit text box set to Multi-line and Allow Rich Text Formatting. It is set to a default font, Calibri and size 50pt. For most situations this will work for them; provides 2-3 lines for a short product description. But occasionally they want a smaller font and more lines... They know how to get the ctrl+e properties bar. But in my testing of this alternative situation they'll need sometimes, I'm finding it's impossible to get the smaller font size and more lines to work. Here's my process.
tab into text box. Ctrl+E for properties bar.
before typing I set the font size to 24
then I type in my 4 lines of text
then I tab to my next form field...
and kaboom... the field I just filled...it's line height is so large it's pushed some of the content invisible. I assume this is coming from the field's default font size, 50
And if I try to adjust the line height, by selecting all the text and then choosing in More...>Form Field Text Properties>Paragraph>Line Spacing
If I set it to Single and click Close/click into another field I get the very large leading (presumably for 50pt font (same as pic above after point 5)
If I choose Exactly and set to point size slightly larger, click Close/out of field, I get another ridiculous result where the 2/3 line have the height I set, but the space between the 1 & 2 second line is way too much and the space between the last line and 3rd line is way too small...
before tabbing or clicking out of field to another field
Good lord.. what is that! 3 different leading values in the same field; just after applying 1 value to all lines, all text in the field...
It makes no sense... it doesn't look like it regards your input at all, and just comes up with it's own random leading... I've fiddled with Space before/after and combinations of Line Height and nothing comes close to what we need... At this point I'm convinced the Acrobat tools for a stylizing text in a multi-line, allow formatting text field are useless. I'd be better off with my employees they can't format anything, ever. Just type one line and hit Tab or Enter...
What is going on! I'm trying to make a simple fillable form for other employees to use, but this kind of behavior makes that impossible (It's enough of a stretch to teach them to use the ctrl+E and do some styling of their text but this is bonkers and completely unteachable... there's not rhyme or pattern to teach!)
Hope someone can help or has seen this behavior too.

How can I show checked CheckBox in Crystal Report

I have a parameter field 'EL' and formula field 'FormulaEL'. I write a formula as follows:
if {?EL}=1 then chr(254)
In preview the report shows checked CheckBox. but the problem is that if I run the program it is displayed as ( þ ) , not as checkedbox. How to solve the problem so that it is displayed as checked CheckBox?
Simple, a checkbox just evaluate to 'r' and set the font in the report for that field to webdings.
You could go a step further and use an image of a check instead, and conditionally surpress it when it's not required.
CHR(254) is a checkmark in the WindDings font but is the symbol you show above in most other fonts. It may be that you have Wingdings on the design PC but don't have Wingdings available at runtime so it is substituting another font. This font should be available on most windows PCs. You will have to install it if it is not available.
https://www.microsoft.com/typography/Fonts/font.aspx?FMID=1698
if ISNULL({coulmn_name}) then Chr(251) //shows x mark on the report
else if{coulmn_name} ='column_value' then Chr(252)//shows Tick mark in the report
// And change font to wingdings for the field in details section.

Jasper Report Desginer does not show static text or text field

Originally my report is created in v5.2.0. My report also uses resource bundles file. When open in eclipse using ireport designer plugin v 5.2.0, it can show all - static text and text field.
But when I am using ireport designer v5.1.0. It shows nothing. like
Do I need to configure something in iReport Designer?? Am I missing something??
I have had this happen because of the size of the static text box in relation to the font size. If the Font size is too large, it will cause the text to wrap to the next line and out of the frame. I am guessing that different versions of iReport have different thresholds before the wrapping occurs.
What I ended up doing to verify this was to make the box bigger until the text appeared. Then I played with the Font size until it would fit in the size box I needed.
I would not worry about the display problem. When the report is generated all text should be shown. If not set the options "Print when detail overflows" and "Stretch with overflow". The latter option is only available within dynamic text fields.
In my case my XML formatter "helpfully" put a new line inside my CDATA['s!!

setting Hex character for page break in Notepad

I have set Hexa character Hex(12) in program output for page break to a old printer alignment. When open the output text file with Notepad, the Hex'oc' will show as small male symbol (with small circal and a plus sign bottom). But some Notepad show as small square box for the same page break symbol.
The printing alignment is OK when using Notepad with small male symbol. However the printing alignment is not OK when using Notepad with small square box symbol.
BTW, I am using MS Window XP Pro version 2002 service pack 3.
Can anyboby help me on this ??
Thanks.
You mean this ♀ "female sign"?
The may be editors which switch to unicode whn discovering such symbols. Then your printer might get different data.
Another reason is the type of printer and driver:
There are drivers which just send what dots have to be drawn on the paper, others just send the text an dthe printer does it itself.
You wrote Notepad twice, do you mean the same native windows program?
What versions does it have?
If I go on "Help" > "About" it is printed: Version 6.1.7601

Crystal Reports text cuts off last line in Details section

I have a Crystal Report 11 file that is a letter. The first Details section contains a large text box that has print date, address block, and the salutation line. Every once in a while, the last line of the text box gets cut off so that the salutation isn't seen. It's very inconsistent in that sometimes, I run the report for one person in my system and the text is cut off, but if I run the report a few hours later for the same person, without having changed the values of the address or name in my database, then the letter looks fine.
I increased the text box height and the Details section height, but the problem still occurs intermittently. Has this happened to anyone else, or does anyone have an idea what could be causing this?
Normally this should be working if you check the "Can Grow" option in the common tab of the "Format Field/Text" settings. With that option checked it shouldn't matter which height you set.
This is difficult problem that you have to attack from 3 different fronts:
Software Hot Fix
Default Printer
Form Authoring
Software Hot Fix: You'll need to download the CRRuntime that includes Hot Fix 20. This Hot Fix addresses truncation problems when making a PDF. You can find it at http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_64bit_13_0_20.msi
Default Printer: The printer you use when authoring a report must match a printer when you are rendering a report. On our servers, there are no printers installed except the Microsoft XPS Document Writer. Be sure to select that as your default printer when writing the report.
Form Authoring: When you add a database field to your report, don't drag it from the field explorer onto the design surface. First insert a text object onto the design surface. When you've positioned and sized it, then drag the database field onto the Text Object. For whatever reason, the database field will wrap better when it is enclosed by a text object.