Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8924789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:30:43+00:00 2026-06-15T07:30:43+00:00

I have printer page which will get the binary file of .doc format and

  • 0

I have printer page which will get the binary file of .doc format and then print it

its working on IE,Firfox,chroom

but when i tried to view it on ipad it gave me empty page ??
below is the code :

                Dim filepath() As Byte
                filepath = Session(Request.QueryString("id"))
                Response.ClearHeaders()
                Response.ClearContent()
                Response.AddHeader("content-disposition", "attachment;filename=""MyFile.doc""")
                Response.AddHeader("Content-Description", "myfiles")
                Response.AppendHeader("Content-Type", "application/msword")
                Response.AppendHeader("Content-Transfer-Encoding", "binary")
                Response.AppendHeader("Pragma", "public")
                Response.AppendHeader("Cache-Control", "must-revalidate")
               Response.BinaryWrite(filepath)
                 Response.Flush()
                Response.End()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:30:45+00:00Added an answer on June 15, 2026 at 7:30 am

    Try to open the document in ms word and save it again
    in microsoft wrod format and then check

    same code :

     Dim filepath() As Byte
                filepath = Session(Request.QueryString("id"))
                Response.ClearHeaders()
                Response.ClearContent()
                Response.AddHeader("content-disposition", "attachment;filename=""MyFile.doc""")
                Response.AddHeader("Content-Description", "myfiles")
                Response.AppendHeader("Content-Type", "application/msword")
                Response.AppendHeader("Content-Transfer-Encoding", "binary")
                Response.AppendHeader("Pragma", "public")
                Response.AppendHeader("Cache-Control", "must-revalidate")
               Response.BinaryWrite(filepath)
                 Response.Flush()
                Response.End()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page from which the user will be able to print .
The website I'm working on currently has a print-icon which pop ups a printer-friendly
I need to create a pdf file which will have series of images, where
I have an HTML page which is completely generated from a Python file. I
I have a program which prints a multi-page document. The first page is pre-printed
I have a requirement to print a bill on a dot matrix printer in
I have a webpage that activates a print job on a printer. This works
I am building a page that will have multiple instances of a tag such
I am working on a project in CakePHP 1.3 which will store a collection
I have a dynamically generated html page which is designed to be printed. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.