Inserting text below image on download - asp.net

I have a collection of images that a client can download should they desire. However, the boss came to me with a requirement to try and add text at the bottom of image. Unfortunately due to space constraints on the server, I can't simply use Javascript to add the information to the bottom of the page when it is uploaded.
Ideally the format should two rows with two cells each. Any help on this would be appreciated.

I believe this is what you are looking for.
http://mvark.blogspot.com/2004/12/code-programmatically-add-text-to.html

Related

Hide or insert image (logo) in pdf using iTextSharp

We print pdf provided by the company and merged it with data from our C# ASP.Net 3.5 Web application using iTextSharp. This works well but we have been asked to either print the form with or without the company logo depending on the user preference.
Should I use a pdf with the logo and hide it or use a pdf without the logo and add the logo to it?
I have found numerous way to add a logo to a pdf but nothing on hiding images. Because the logo could be having different size and be in a different location I would prefer to hide it when needed instead of adding it. Can we hide images from pdf without removing it? What would be easier?
Or should we just use 2 versions of each forms, one with the logo and another without?
UPDATE: In a nutshell I just want to have your opinion to what way would be best. Use a form without a logo and add it when needed or use a form with the logo and hide it when needed. Thanks
FINAL UPDATE: Some people gave good answer but I see no way to accept their answer. Can someone help me?
Because no one answered my question I selected one of the comment as "the" answer. Thanks mkl!
You can store data private to your application in PDFs, e.g. logo size and location in the case at hand (cf. this answer on PieceInfo structures). I would, therefore, recommend that you create the PDFs without the logo but store the size and location for a logo in such a PieceInfo dictionary. If adding a logo is required later-on, use that information to properly place the logo

Microsoft Reporting WebForms Report Viewer - Exporting to Excel

I have a report viewer that I am using to export to PDF and Excel. Sometimes some of the data in the tables is longer than a singular line.
When exported to PDF the fields that need more height are automatically given it. Yet when I export to excel it remains in the original height and doesn't grow to display all the data.
I want the cell heights to automatically grow to display all the data on screen. I have set CanGrow to true but this has no effect (apart from working when exporting to PDF).
Has anyone had this problem before and can share a resolution?
Thanks
OK, after not receiving any answers I delved in to this one myself.
It appears that text doesn't wrap in excel when the cell is a number of merged cells together.
So in the report viewer if all text areas and items aren't lined up with one another or if one is twice as long as two others then they will be placed in merged cells to make up for the crossover.
It means that the chances are these isn't a solution to the problem, unless all your text areas are identical in width or you can alter the layout so that those that require wrapping to new lines will only take up a single cell.
I done this by putting everything in a table, and knowing that if I merged any cells then text wrapping would not be possible.
I hope this will help someone out there!

Load bulk data in HTML table faster

I generate an html table from code behind to display data like a grid (Note: I am not using GridView). I then assign that HTML table to a div. But now when data is large (around 2000 rows), it displays a white page like the application has hung.
How do I resolve this issue? I am thinking of showing only 100 rows at a time while other rows are generated in background but I don’t have any idea of how to implement it.
Can anyone help me? You see the type of functionality that I require in Facebook when you scroll down. Please let me know your ideas.
Thanks.
What you are looking for is called "infinite scrolling." Here's the links to a jQuery plugin that should help you get it going:
http://www.infinite-scroll.com/infinite-scroll-jquery-plugin/
https://github.com/paulirish/infinite-scroll
Like a lot of other solutions, the specific code will vary depending on your containing HTML and your data source. Post back here if/when you have any specific problems you need a hand with.

ASP.NET - Imageview just like in Google Picture Search Results

Imagine, that u have 10 Imagelinks (Example of such a Link: CLICK
What I want, is showing the 10 Pictures, googlelike (clickable) on my ASP.NET Website.
What would be, the best way to achieve this?
Do I should use a Table? But what if the Image is bigger than the Rowsize and how I could do the Clickevent on it?.. and so on..
I would use a table if you want to keep the same number of images on each row. Otherwise, you could just display the images inline and allow them to word wrap naturally.
As far as large images, Google resizes the images so they fit. If you don't do that, then you could definitely have formatting problems.
Finally, you make them clickable the same way you make any image clickable: through an anchor tab, or using some type of client-side scripting. When you create the markup, you will need whatever data is required to make each image clickable in a meaningful way.

how to merge two images into one with asp.net

I am working on an asp.net project. I am searching for a solution such that after a background image of a div is chosen. The user selects another image and coordinate. Then, this image will be merged on the background image with the defined coordinate.
Thanks in advance.
If you wish to combine two images,firstly you must upload them into server via ajax requests.
Read this article : combining images
After you combine them,let the user download the new one.
Also if you're looking for an editor to do so,I suggest to place them on html5 canvas.
Best Regards
Your post is quite general, but look in to System.Drawing and using an AJAX call to post both images (as well as the coordinates chosen) and then return the combined image which can then be displayed.
Without more specifics that's really all I can offer.

Resources