<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'internet explorer does not download pdf' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'internet explorer does not download pdf' posted on the 'ASP.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 11:13:58 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 11:13:58 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>internet explorer does not download pdf</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/428573/428573/internet-explorer-does-not-download-pdf/</link>
      <description>I'm working on a website in which a user enters a name and then presses a button that prompts the server to create a pdf file according to the information provided, and then sends the file to the user.&lt;br /&gt;
&lt;br /&gt;
I'm testing the website on my laptop without IIS.&lt;br /&gt;
&lt;br /&gt;
I needed the pdf to be hebrew and couldn't find a pdfwrite with vb on hebrew; instead, I create a MS Word document and then convert it to pdf using the code below.&lt;br /&gt;
&lt;br /&gt;
This works fine on Firefox, Chrome, and Safari, but on Internet Explorer the page disconnects before the download. It disconnects when the create word statement is executed.&lt;br /&gt;
&lt;br /&gt;
Can anyone help me?&lt;br /&gt;
&lt;br /&gt;
   &lt;pre class="sourcecode"&gt;   Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles      Button1.Click
      Dim strname As String
      strname = TextBox1.Text.Trim

      Dim oword As New word.Application
      Dim odoc As New word.Document
      oword = CreateObject("word.Application")

      odoc = oword.Documents.Add("C:\documents\tamp.dotx")

      odoc.Bookmarks.Item("name1").Range.Text = strname
      odoc.Bookmarks.Item("name2").Range.Text = strname
      odoc.Bookmarks.Item("name3").Range.Text = strname
      odoc.Bookmarks.Item("name4").Range.Text = strname
      odoc.Bookmarks.Item("name5").Range.Text = strname
      odoc.Bookmarks.Item("name6").Range.Text = strname

      odoc.ExportAsFixedFormat(Server.MapPath("\neshume.
pdf"), 17)
      Response.Redirect(Server.MapPath("\neshume.pdf"))
      end sub&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/428573/428573/internet-explorer-does-not-download-pdf/</guid>
      <pubDate>Wed, 23 May 2012 19:57:01 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
  </channel>
</rss>