C# - How To Display Size And Icon For Pdf And Word Docs
Oct 13, 2010
I have webpages that contain links to word documents and pdf files. For each link I want to display the file size and an icon showing what the file type is.
I'm thinking the best way to do this would be with CSS? Can anybody give me an example of how to do this?
View 1 Replies
Similar Messages:
Apr 4, 2011
I have an asp.net app that uses a SQL Server 2005 database to store word documents. One of the application requirements is that when a user clicks a button, the system retrieves some number of word documents from the db, zips them up in memory and allows the user to save the zip file to disk.
Is there a zip library that provides the ability to zip up files in memory? The few that I've seen read from the file system.
View 3 Replies
Oct 13, 2010
I'm trying to open Word & Excel docs in a new browser window. The windows opens and then closes straight away. I think I may need browser plugins. Can someone provide some advice on how I can achieve this?
Here's my code:
From calling page:
[Code]....
From new page:
[Code]....
View 1 Replies
Jun 25, 2010
The purpose is to generate proposal documents that can manually be edited in Word after the fact, but before sending them out to the customers.
Much proposal content would be drawn from existing HTML website content (backing CMS) and also some custom (non-HTML) injection for certain scenarios. Of course the conditional logic could go into server-side ASP.NET to vary the content appropriately.
I'm open to 3rd-party tools if raw manipulation of the Word API is arduous. In fact a good 3rd party tool might be the answer.
View 3 Replies
Nov 23, 2010
I have a .Net 4 web application which has a folder called "docs" which is full of Word docs on the root of the website. The words docs are linked with a gridview in my "admin" section
I only want Autheicated users to be able to renders the word docs in the doc folder. I am finding if the user logs out and they manually type in the url to the Word document it renders the file eg.
www.mydomain.com/docs/something.doc
i have tried putting this in my web.config but did not work for the Word docs. It stops the rendering of .aspx files but not .doc's
<location path="docs">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
Is this because the .doc extension is not hadled by the .Net framework and that I need to do something to Handler Mapping in IIS7? I would prefer to put all my security setting in the web.config ideally
View 5 Replies
Mar 21, 2010
I have been presented with numerous word and excel docs. The goal is to put them online and bind to a database for the fields and also to store data for easy searching and reporting.
Has anyone done anything like this before?
I know the easy solution would be to create a database table for each particula form and also an ASP.net page for each form.
But then there are problems like printing and correct formating so it fits on the page, spaning multiple pages and so on.
And also is there any advice on how to write to PDF straight from the page?
View 1 Replies
Jul 8, 2010
i am develpping a alarm application when user minimized this it should be minimized appear near the system clock,local area connection icon(as hidden icon).
View 3 Replies
Jan 12, 2010
I have a gridview control which is displaying the files and directory names in one column. Now i want to display the file icon of that particular file in the other column... eg test.txt will have a different icon form image1.jpg and here.xsl i have found two examples but don't kno if they will work or not. [URL] or [URL]
how to incorporate this with my gridview..?
View 2 Replies
Feb 22, 2011
i assigning an imagebutton to an image url in css causes my image to still show, but also the icon for an image if there isn't an image. If I declare it in the html instead, it shows fine, only when I try to use CSS for the referene to the image url.I use the following syntax for the image in css
background-image: url(image1.jpg);
Again, it is finding and showing the image, but it is also showing the windows image icon.
View 2 Replies
Mar 29, 2011
I have this situation where I need to display a bunch of files pulled from a Sharepoint site in a Silverlight application. I use a WCF service to get the data from the Sharepoint site.
So what I have is file names with their corresponding extensions. What I need to do is, display the files in the Silverlight application with their corresponding file type icon and file name. The following is the Heirarchical data template I use to display the files in the Silverlight application.
<sdk:HierarchicalDataTemplate x:Key="FileTemplate">
<StackPanel Orientation="Vertical">
<Image x:Name="imgFile" Source="{Binding FileImage}" Height="35" ></Image>
<TextBlock x:Name="txtFile" Text="{Binding FileName}"></TextBlock>
</StackPanel>
</sdk:HierarchicalDataTemplate>
Where FileImage and FileName are strings.
PS: The reason I don't have file type and size is because I using Sharepoint web services and XMLReader to get the information about the files.
View 1 Replies
Aug 24, 2010
I've created an ExpenseReport application which allows users to attach receipts to Expense Report Lineitems. These are contained in a gridview using a template field:
[Code]....
The trouble I have is that the 'attachment.jpg' icon shows for every lineitem (even one that does not contain an attachment). I would like to be able to selectively display this icon or show a different icon if there is NO attachment.
View 9 Replies
Aug 30, 2010
how to display an image in a HyperLinkField of a gridview? Instead of words, I just want to show a simple little icon that can be clicked on and pass a query string to the next page. The first hyperlink field I have set up works perfectly and passes the querystring to the next page. The second hyperlinkfield is my attempt at showing the image but it's giving me a squiggly and telling me "the element img cannot be nested within the element hyperlinkfield" I got this technique from this brief article - I would like to accomplish exactly what it says it is suppose to do.
[Code]....
View 5 Replies
Aug 13, 2010
I have a gridview and would like to display one of 5 icons depending on the value returned from the database for that row (simply just A, B, C, D or E). Which event in my datagrid should I be looking at to check what value I'm getting? I presume once I can check a value I can simply set an image source using if statements?
View 4 Replies
Apr 9, 2010
Using ASP.Net/VB.Net 2005.
I have an accordian inside a nested gridview that is controlled by an imagebutton. The Imagebutton is a plus sign "+" and the expand/collapse functionality is working great.
What I need to do is when the user expands the accordian is to change the plus ("+") sign to a minus ("-") image. I am trying to do this with javascript but its not working.
View 2 Replies
Feb 1, 2010
I have the following list of projects WebUI (WebSite) , DataAccess (ClassLibrary) , LogicLayer(ClassLibrary). Those of the project are purposively crated separately.But my scenario is, need to create only one solution file, then add all of the above projects under this solution file. So that i can be easiy interacted and changes can be made by opening solution file only instead of opening each project individually.
Simply all of the layer projects are under one roof means one solution. I tried it by adding solution first, then i added already existed project into this. But once after added already existing project the solution icon vanished by showing the icon of recently added project. By this way I could not add another project into this section too.Hope this is the way the basic real-time projects are created; to achieve the centralized control over architecture based projects.
View 4 Replies
Dec 9, 2010
How to Display Icon IN title bar of Browser with title?
View 7 Replies
Jun 29, 2010
How can I get my asp.net webpage to display a word document in the browser? This is a controlled environment where everyone has exactly the same browser settings and everyone uses internet explorer 7.
View 1 Replies
Feb 28, 2011
is there a way to embed ms word doc within web browser. i won't be able to pay for activex controls. i cant use google docs because the docs need to uploaded to google. cannot use office interop also because of this
so if you know...
View 2 Replies
Apr 8, 2010
I have a file up-loader by which i upload the .doc file in a folder on server.]
I want to display the whole word document content on a label as it is in .doc file in C#.
View 2 Replies
Aug 10, 2010
how to display the word document which is binary document which is stored in database?
View 2 Replies
Oct 13, 2010
Is there an easy way to show the size of an aspx webpage in bytes (i.e length not screen size) - to save clicking File..Properties in the browser.
Possibly some javascript method, or a way of getting it from the Response object perhaps?
View 1 Replies
Mar 1, 2011
How can i use the google docs say like wen i display a excel sheet when the user wants to view that particular sheet or document It should open in google docs how can i do that?
View 2 Replies
May 18, 2010
I have never used ASP before!I have a server which has a shared folder where all quotes for our small business are saved.I have setup a HTTPs website with authentication, which then allows you to browse the folder contents as HTML. If you WORD installed on your machine you can download and open. No need to be able to save or anything - it is for viewing only.
The trouble I have is that every now again you are on a site where you cannot open the document as there is no software to do so. I would like to be able to display the WORD doc in a web browser.I have googled and it seems it is possible, but I am struggling with a result.All I want to do is view the WORD document in an HTML page. It could even be just the text less the formatting and header/footer if this was easier to achieve.Running MS Server 2003 SBS, and currently still using MS Office 2000!
View 2 Replies
Jan 25, 2010
I have a set of doc files with respect to the data in the sql. Now I have to C# code, so that when the column in the gridview is clicked then the respective name must appear ina linklabel in the windows form nad that label must be linked to the respective file. For eg:
name bacteria author citation
aaa myxo sri 12-333-3
vvv mmm xxx 1112-2-2
the values unser sitation must come to the linklabel and that must direct to the respective word files with the names 12-333-3,1112-2-2. Is it possible to do this some how as this is only one example I have many files as such. Is one label enough to perform the necessary action updating itself when I clicked the different columns in the datagrid view as I already did some coding recording linking each column value to a textbox.
View 1 Replies
May 18, 2010
i want to display word(doc),pdf files in my asp page..is there any control in asp.net? if not then pls provide me the UserControl to display fies in my web page.
View 4 Replies