How do I prevent a font from extending off the top of a textbox? - tsql

I'm using a barcode font (IDAutomationMC39H) in an SSRS 2005 report I'm developing, and while it renders fine in the preview in BIDS, if I export the results to PDF, print the results, or do any of the above (including preview) in Report Manager, the barcode font is extending off the top of the textbox. The barcode itself is nearly 20px tall, even at only a 12pt size. I've tried changing the CanGrow value for the textbox, but it seems that even with that set off the barcode isn't pushing the bottom edge of the textbox downwards, it's simply extending over the top of the box. I've also tried resizing the textbox to allow it to contain the entire height of the font, but even with the VerticalAlign set to Bottom the barcode still sticks to the top of the textbox and overflows out the top.
See screenshot here:
http://imgur.com/JDC4Z.png
Does anyone know how to force the font to be bound by the top of the box, instead of overlapping it?

I tried with no real success to get font-based barcoding to work. Ended up getting the boss to pay for NeoDynamic BarCode Professional which works great and has a lot more flexibility than fonts.

Related

field separation during browser resize

I have this template I'm working on and it's resizeable from full screen to the width of an iphone. My contact form field is fine at full screen, but when I resize my browser, it seperates really bad and not sure how to fix this to keep the fields right under each other. I have a before/after here:
http://www.webauthorsgroup.com/before.jpg
http://www.webauthorsgroup.com/after.jpg

iText Flatten PDF

I have PDF template with a large text-box. Based on the size of the content, the textbox comes-up with a vertical scroll bar. But issue comes up when I flatten the PDF using PDFStamper, the text box does not have the scroll bar and user see only half of the content.
Is there way to allow scroll bar in the text box after flatten the pdf?
Please note that while designing the textbox in the template we have enabled scroll bar option.
No. Flattening a PDF effectively disables interactivity. What your printer kicks out is what you see on screen. One work around is to drop the font size on the field for long items. Another option is to make the PDF read-only instead flattening it. See this post from the office iText mailing list for more.

how to get the rendered width of internationalized button text in GWT?

While testing our app with a new set of translations, I found that the translated text for some of the buttons are significantly wider than the english. The result is that the button text wraps to a 2nd line, which is either cut off by the button, or floating below on a 2nd line. It seems like I need to get the rendered width of the text in order to dynamically resize the buttons, assuming there's space in the layout for a wider button.
Is there a way to get the width of the rendered text of a button?
Unless you are using a monospace font for the buttons (why not do so, actually?), and render it using CSS en / em / ex units, you cant really predict the text width, only make an educated guess.

In landscape mode, can't add lines or boxes wider than 8"

In Crystal Reports 2008, to which I've recently upgraded, I have a new report in which I'm trying to place boxes and lines. The report is Letter, landscape, with .25" margins, so I have 10.5" of space to work with.
Unfortunately, Crystal will only let me place drawing objects in the first 8" of space. If they overlap that range, Crystal sizes them back to 8". If I place them entirely to the right, Crystal moves them back to the 8" mark.
I have the same problem if I try to change the width or position using the Size and Position box.
Sounds like a bug where it's mistaking the available length for the available width.
Any idea how to fix this or work around it?
Old thread i know but here is the correct answer/fix.
The issue with only being able to draw a line so far across the report is due the the ruler at the top not extending along the full length of the report page.
This in turn is down to the default printer that is selected and the restricted paper sizes that it allows.
Install a dummy printer that accepts larger paper sizes and either set it to default, or click on File > Page Setup and under printer options, select the dummy printer.
The ruler should now extend across the full length of the report page and you can extend your line to match it.
NB: This was in Crystal Reports 2013 R2 - The settings may differ slightly in older/newer versions.
i had same issue. could not scratch lines.
i tried to change page setup from landscape to portrait and then did required changes.
again changed page setup to landscape and it was working fine .

Form field not visible in IE8

I'm working on a website template and Internet Explorer is giving me a headache since I'm unable to display the search form field and button correctly. z-index in CSS is not doing much either.
By the way, how can I move the input area after the loupe icon?
Check the website here:
http://gabrielmeono.com/yonature/
Chrome:
In IE8:
Three things:
IE8 does not support border-radius, which is being applied to that field.
Your CSS references a file that's missing, border-radius.htc which is for adding rounded corners in "all major browsers other than IE."
You should be able to add a left padding value on the field to force the text further to the right. It may be safer to make a white, rounded container and position the search button and text field within it.
Edit: I was wrong; the border-radius (curved-corner) file should work for IE6-8.