Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. embedding office functionality into application

embedding office functionality into application

Scheduled Pinned Locked Moved C#
csharpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tdciDoug
    wrote on last edited by
    #1

    How might one go about embedding certain Office features into a C# application? More specifically, I would like to be able to visually paste, resize, and crop images into a control in my application. Are there components I can simply include into my application to accomplish this? If so, can I also put them into an .ASPX page? Thanks!

    H 1 Reply Last reply
    0
    • T tdciDoug

      How might one go about embedding certain Office features into a C# application? More specifically, I would like to be able to visually paste, resize, and crop images into a control in my application. Are there components I can simply include into my application to accomplish this? If so, can I also put them into an .ASPX page? Thanks!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      If you customize your toolbox to include the OCW (Office Components for the WEb) you can embed them as ActiveX controls as you would with other ActiveX controls, but you can't just take functionality like paste, resize, and cropping images. That type of implementation is not simply reusable components most often, at least not with Office (Office apps share functionality, but not always in a way you can reuse). Especially with copy/paste and drag/drop that functionality is very specific to an application, as far as what storage mediums and clipboard formats it supports (and .NET exposes only supports a few STGMEDIUMs, excluding TYMED_ISTREAM and TYMED_ISTORAGE). You can embed the OCWs into any web page. Remember that ASP.NET describes server-side functionality, hence being called Active Server Pages (.NET). Only minimal client-side script is used to support server-side state. You could embed OCWs even into pages generated from PHP running in Apache on a linux machine and it wouldn't make a bit of difference. Anything a client views in a browser is downloaded from the server to the client application. That's how HTTP along with most other protocols work. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups