Word Online Editing \ generate image (including screenshot and merge), word screenshot

Source: Internet
Author: User

Word Online Editing \ generate image (including and merging), word

1. Business reasons

If the text edited by word is copied to the html editor (fck, etc.), the layout may be disordered, so it is chaotic. There needs to be a new method to end, so there is a series of problems such as whether the word can be edited online, stored in the background, and the front-end display light.

2. First, you can edit the word online by using weboffice or dsoframer. The advantage is that you can edit the word online only in the IE browser. Tangle...

3. After editing, save it in the background. weboffice or dsoframer has corresponding interfaces.

4. After saving the image to the background, convert the page Image Using Aspose. Words.

5. Because the image generated by Aspose. Words has a small margin, you need to save it.

6. Save the multiple graphs.

Pay key code:

Document doc = new Document (Server. mapPath (".. /.. /Uploads/"+ guid + ". doc "); ImageSaveOptions = new ImageSaveOptions (SaveFormat. png );

[Csharp]View plaincopyprint?
  1. For (int I = 0; I <doc. PageCount; I ++ ){
  2. Options. PageIndex = I;
  3. Doc. MailMerge. DeleteFields ();
  4. Doc. save (Server. mapPath (".. /.. /Uploads/"+ guid +"-"+ I. toString () + "-copy.png"), options); // Save the converted Image
  5. Bitmap bm = new Bitmap (Server. MapPath (".../Uploads/" + guid + "-" + I. ToString () + "-copy.png "));
  6. Rectangle cloneRect = new Rectangle (0,100,794,920); //, remove the top PX
  7. PixelFormat format = bm. PixelFormat;
  8. Bitmap cloneBitmap = bm. Clone (cloneRect, format );
  9. CloneBitmap. save (Server. mapPath (".. /.. /Uploads/"+ guid +"-"+ I. toString () + ". png "), ImageFormat. png); // save
  10. CloneBitmap. Dispose ();
  11. }
[Csharp]View plaincopyprint?
  1. Bitmap bmp = new Bitmap (794,920 * doc. PageCount); // create a blank image (combination)
  2. Graphics g = Graphics. FromImage (bmp );
  3. For (int I = 0; I <doc. PageCount; I ++)
  4. {
  5. Bitmap mp = new Bitmap (Server. MapPath (".../Uploads/" + guid + "-" + I. ToString () + ". png "));
  6. G. DrawImage (mp, new Point (0, I * 920 ));
  7. }
  8. G. Save ();
  9. Bmp. Save (Server. MapPath (".../Uploads/" + guid + ". png "));
  10. G. Dispose ();
  11. Bmp. Dispose ();

How can we combine the text and image of a Word document into a picture or avoid distortion?

Satisfied with the answer to embrace nature Level 4 you try to put the text above the picture, if blocked, right-click the picture, choose the bottom of the order. If you add an image to a text box, you can also try to merge the image, that is, select the text box and image, and right-click to merge. Q: I don't know where to merge them? It seems that there is no .. a: press ctrl on the keyboard, click the picture and text box on the left, and move your hand away from the keyboard. Click the picture or text box right and a drop-down menu is displayed. Select "merge! Q: After this is done, will a document become an image ?? I am worried that if I just merge it, I will go to the print store to print the fonts that I have not installed on my computer ~ Could you give me some advice ?? Thanks .. q: What I want to know most is how to combine the text and images in all Word documents into one image, in this way, I can print the image directly when printing... answer: after the merge, it is the same! If the merger is canceled, the computer to which the merger is made will be one! As for the font, try to find the font folder on your computer and forget the name of the folder. I don't know whether it's type or drive C! Otherwise, you can search for the font file, select the file type in the options, or enter the name of the font you used and search for it! Finally, copy the font file you used to the place where you want to print it and explain the situation to him! Q: Well, thank you !!! 2011-03-22

How to edit images on the Internet in word, such as inserting annotations?

Word is a text processing and typographical software. Editing images is not its strength. It is recommended that you use an image editor for simple image editing and complex PS.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.