I am having an aspx page with controls as textbox ,tables ,checkbox etc .I need to convert the webpage to pdf file by a button click .I am using Itextsharp in it. when the button click event fires it shows the error as Font size too small: 0 near htmlparser.Parse(sr);
So how to rectify it .the code used for button click is :
I using iTextSharp dll. I have PDF template and I create a finished form from this template. I want to change font for all pdf, but I can't. I add "AddSubstitutionFont" in PdfStamper, but in pdf is default font. I tried with AcroFields.SetFieldProperty(....); and AcroFields.SetField(...); but labels is again with default font.
I want to change the font size/text size of radiobuttonlist. I used the following code:
<asp:RadioButtonList ID="rblCatName" runat="server" Font-Size="9px" AutoPostBack="true" RepeatDirection="Horizontal" onselectedindexchanged="rblCatName_SelectedIndexChanged"> but it is working. I also tried in the code behind but is not working:
what is should do to change the radiobuttonlist font size.
I have two panels in a formview. The first panel has a dynamically set image to be used as a stationary background and it has a fixed size. Inside of this panel, I have a second panel with its Z-index set to overlay the first panel. This second "text" panel has five labels in it. These five labels contain text of varying lengths. Some much longer than others.
How can I dynamically change the font size of the labels in the second panel (or the panel as a whole) so that the text (remember it has verying lengths) is contained within the margins of the stationary panel?
I am not certain that using panels is the right way to accomplish this, but could find no other way to do the overlay concept.
I want to be able to change the font size of the span style dynamically depending on how many days in the month will be filled up. I am using a calendar object and if only 7 days are filled up so far I want to make the font larger for the user. As the month fills up more days and I want to make the font smaller, so it will all fit on the page better. Is there a way to do this?Dim linkstr as string
I am using TabContainer with some controls on each tab (asp: labels, text boxes). When redirecting to the page that contains the TabContainer, the tabs and their content loads as expected, but when there is a postback, and the page refreshes, the TabContainer UI changes - the font size of the labels gets bigger, the text boxes become bigger and their location changes a bit (not aligned as before), and the tab header is partially hidden. I am using IE7.
I dont know if this is relevant but in some of the text boxes i use edit mask extender as well for date. Also, I have used a table inside the TabContainer for layouting the controls.
//Read string contents using stream reader and convert html to parsed conent var parsedHtmlElements = HTMLWorker.ParseToList(new StringReader(contents), null); //Get each array values from parsed elements and add to the PDF document foreach (var htmlElement in parsedHtmlElements) pdfDoc.Add(htmlElement as IElement); //Close your PDF pdfDoc.Close(); Response.ContentType = "application/pdf"; //Set default file Name as current datetime Response.AddHeader("content-disposition",
Error: Input string was not in a correct format. Contents in html file giving error ...
Just upgraded from SSRS 2005 to 2008 (on a test server). I have a report with a list and in this list are about a dozen fields in textboxes whose fonts are all set to Verdana 8pt. When I run the report from the Report Manager, one of the 12 fields is displaying in a serif font (like Times New Roman) at around 12pt. When I preview the report in Visual Studio every field looks fine and when I run the same report in SSRS 2005 every field looks fine. Has to be a SSRS 2008 bug!