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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP to WORD Problem

ASP to WORD Problem

Scheduled Pinned Locked Moved ASP.NET
designhelp
1 Posts 1 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.
  • A Offline
    A Offline
    asifmaniar
    wrote on last edited by
    #1

    I am trying to open up an asp page with a repeater. The page displays a list of apartment adds. Each record has an image and many text fields. I am using the following code to open the same page in word.. Response.Buffer = True Response.ContentType = "application/vnd.ms-word" Response.AddHeader("Content-Disposition", "inline; filename=searchresults.doc") Response.Charset = "" Me.EnableViewState = False Dim objSW As New System.IO.StringWriter Dim objHTW As New System.Web.UI.HtmlTextWriter(objSW) Me.RenderControl(objHTW) Response.Write(objSW.ToString()) Response.End() The page opens in word but the problem is that i can not resize images. The images are of various size but in the page am setting the width=200 and height = 150. In word the width and height of the image remains the same as the original images and looks really ugly coz all images are different sizes. Also although i have made borders of all the tables in the page to "0" I can still see the borders in word. I tried changing the border color to white but nothing. Thanks.

    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