VS 2008 Save The Page To An Image Or A PDF File Or Word?
Jan 14, 2011i have page contain on textbox and checkbox need user after filled fields save page to pdf or jpg or Mword to send it by email or print .
View 1 Repliesi have page contain on textbox and checkbox need user after filled fields save page to pdf or jpg or Mword to send it by email or print .
View 1 RepliesI have written a website and let the user upload their photo. It also resizes the picture to 400 x 400 and crops automatically to the center part of the picture. All of this works good but each file is about 355K each for JPG and PNG file formats. I just tried GIF and it is 49K but the picture is grainy when saved this way. Is there any way I can get the picture to a smaller file size with keeping it at 400 x 400? I really thought PNG would be the way to go and was surprised by it being the same as jpg. I don't want to lower the quality either for JPG files.
View 1 RepliesI have a webpage (clientoverview.aspx).
I need something to convert that page to a .PDF file and save it on my pc.
I need the PDF to look like the webpage (css and all).
I tried iTextSharp, but can't get it to work.
We can't buy any products to do this (Client doesn't want to do it like that)...
I am reading a word file and saving the contents into the database and retrieving it. One issue is that if word document contains a bold text or underlined text it is not getting saved into the same format. Is there any possible way to save and retrieve the rich text.
View 1 RepliesI have read about the file upload control in asp.net and tried it and works great. But I want to know if I can use it for another purpose. I have a video capture control that can be used for webcam apps or anything else. It has a method called HTTPUpload where it will upload an image file to the server using the HTTP upload protocol. My question is can i use the .net FileUpload control for this? And if so, how can I pass the image file straight to the .aspx page without having to submit a button? Would the file be as a query string variable?
Arguments:
WebServer = web server address
WebPage = name of upload web page
Fields = list of 'fieldname' and 'fieldvalue' values delimited with '|'
Files = list of 'fieldname' and 'file path' values delimited with '|'
Returns TRUE if successful, or FALSE otherwise.
Example
vcx.HTTPUpload "[URL] , "upload.asp",
"field1|value1|field2|value2" ,
"file1|c:foldermypic.jpg|file2|c:foldermyvideo.avi"
I have to save a .doc file on the server when the user clicks a button with no 'Open/ Save / Cancel' dialog box.
my code:
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset =
"";
HttpContext.Current.Response.ContentType =
"application/msword";
[Code]....
The problem is that the user first sees a 'Open/ Save / Cancel' dialog box. Instead of dialog box, It should be automatically save on server.
I have a requirement where the customer wants to save their web page into MS Word. Can someone show how I can save the page they are on, which they want to save into MS Word?
View 1 RepliesI am maintaining a web application that allows word template documents do be opened inside the browser.
Recently the client upgraded to windows 7 and MS Word 2007 and my problems started... When a template document is opened inside the browser and saved, the original file is overwrited instead of a new word file being created.
Is there a way to force ms word inside the browser to behave the same as when it runs outside the browser?
i want show an image in image control as user select an image file through fileupload control. and i not want saving image on the my server
View 2 RepliesI am having an issue that I do not quite understand. I had an ASP project that I built using
Code:
<add assembly="Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
while I still had Office 2007 still on my development PC. I recently upgraded to Office 2010 and even though the web.config file still remains with the above assembly reference, when I publish it and run it now i keep getting the following error ...
Quote:
Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
I also have installed the PIA for Version=14.0.0.0 on the server but I still get the same result.
I need displaying my image file stored from my database into the image control. I've had read some articles and watch video tutorial which there were perfectly working and I followed it but I wasn't able to make it work. The image control just displayed blank. I used Generic Handler to retrieve the image file from my database based on the articles and tutorials I've got. here are my codes below:
Generic Handler:
Code:
<%@ WebHandler Language="C#" Class="ShowImage" %>
using System;
using System.Configuration;
using System.Drawing;
using System.Drawing.Imaging;
[Code] ....
Asp.Net Code for the Image control:
HTML Code:
<asp:Image ID="Image1" runat="server" ImageUrl='<%# "ShowImage.ashx?ID=" + Eval("ID") %>' Height="128px" />
I have 2 xml documents that I need to find the difference and then save it back to an xml file. I already have the code to get the difference, I am just lost on how to save the IEnumerable back to xml. I tried to stuff it into an XDocument, but got a conversion error.
Code:
Dim xDoc As XDocument = XDocument.Load("doc1.xml")
Dim xDoc2 As XDocument = XDocument.Load("doc2.xml")
Dim result = xDoc2.Descendants("Contact").Except(xDoc.Descendants("Contact"))
'Tried this but It blew up.
Dim resultDoc As XDocument = result
resultDoc.Save("result.xml")
Am I going to have to rebult the xml document and manually add the elements? Or does LINQ support converting back to the same schema?
I want to save a picture from my computer in database on the server. I want to show this picture before I save it in database . I used this code.
[Code]....
The picture is saved on the server. I do not want this.
I have one requirement from client where they want to browse and save their choice Logo image in a website which i am developing.
Really i don't know how it happens and Is there any issue like security i need to consider while implementing this logic?
How user (client) will browse image file and where should i store that file in server?
Every indivisual user can browse file of different size and different name; how can i manage at server side so that image appear at right place and in right manner?
Where should i store image corresponding to user id at server; i.e. in database or file?
I am having one Event Registration form in that I need to provide one control with which user can attach file it may be pdf file or jpeg(Image). Any sample so that to save pdf file or Image file in DB and how to retrieve it.
View 1 RepliesI'm trying to write code that will allow a user to click a button and be prompted to save an image file that resides on the web server. I'm using the following code, but I get an error that says "Error: Could not complete the operation due to error c00ce514.".
[Code]....
I have verified that the file exists. Is there another method for prompting users to save a file to their local machine?
I am writing code for upload image file and save it into disc ,,, during this and before save it to disc I want to resize the image into specified width and Heigh. i am trying to use this code
[Code]....
but I dont have Neodynamic.WebControls.ImageDraw.dll?
is there any way to show a preview content of word file?? like sample application feed viewer?
View 3 RepliesI want to convert .aspx page content to .JPG image means like we take screen shot of page and save as image but i want whole page should save as image and based on that i want to generate PDF for that Page.
View 3 RepliesMy requirement is : I have to open a word document in Microsoft word from my web application and the word document is stored in the server location.
In javascript i wrote a code to open the word document like below.
var dsWordApp = new ActiveXObject("Word.Application");
var WordDoc = dsWordApp.Documents.Open(FileName)
Using above script i am able to open the local word doc files but i am unable to open the server side word doc file.
how to open a server side word doc fie in MSword.
I want to develop a web page & i want to show doc file on the aspx page in same format on button click.
View 1 RepliesI am trying to streamline the look of my site and I was wondering if there was a way to use the onclick of an image to open up a <input type="file.../>? I want the input to be invisible so it doesn't add clutter to the interface. Here is ultimatly the flow I would ideally have... Image click -> Javascript calls input open. User clicks "open" in the dialog, Input calls some Javascript that calls the click event of the inviable "upload" button. Boom. User clicks image, selects a new one, and I have it automatically on my server without the need for two more buttons... Anyone know if these types of events/functions exists and if so what they are called and how to capture them? Or should I stop making this over complicated and use the method that I know works?
View 6 RepliesIs there a way which allows me to save the current page of a GridView as an image?
View 2 Repliesi have an aspx page with one button on it the name of the page is Default.aspx
i have a physical microsoft office word file in the c drive
what i want to do is that when i press a button i open a microsoft office word located on the c drive then i add some text to it using c# code
then i want to open the file (that i edited and located in memory) in mircosoft office word to see the text that i have added
everything works fine but when i press the button i get a prompt that says do you want to open the file or save it .
questions:
so how can i directly open the file (located in memory) in microsoft office word without this prompt
also if i choose open from the prompt the file opens in the read only mode and the title of the file in the microsoft word become the name of the aspx page which is Default.aspx
so what is going wrong here
[Code]....
What is the best way to insert and retrieve images like :
In the database in binary form retrieve it with imagehandler, or
In the database by saving the path of the folder of the images and retrieve it, or
by saving the images directly to the folder and retrieve it...