<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Enterprise Services  Integration</title><link>http://forums.asp.net/46.aspx</link><description>Integrating Enterprise Services including Office, OWC, BizTalk, MSMQ, COM+, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Exporting to Excel using OpenOfficeXML 2.0 - Type 'SpreadsheetDocument' is not defined</title><link>http://forums.asp.net/thread/3530294.aspx</link><pubDate>Tue, 24 Nov 2009 15:28:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530294</guid><dc:creator>markp11</dc:creator><author>markp11</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530294.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3530294</wfw:commentRss><description>&lt;p&gt;I have a requirement to be able to export data to an Excel spreadsheet (created on the fly) from an ASP.net&amp;nbsp;application. I am attempting to use OpenOfficeXML 2.0 as this&amp;nbsp;appears to&amp;nbsp;be the&amp;nbsp;&amp;nbsp;way to go?&lt;/p&gt;
&lt;p&gt;I have downloaded and installed the components from Microsofts site and set a reference in my Web Project to the DocumentFormat.OpenXML.dll, and as such in my classes I can see and reference all the objects associated with the DLL.&lt;/p&gt;
&lt;p&gt;My application builds ok with no reported errors, however on running the application the browser opens and then shows the following:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Compiler Error Message: &lt;/b&gt;BC30002: Type &amp;#39;SpreadsheetDocument&amp;#39; is not defined.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Line 34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub NewSpreadsheet()&lt;br /&gt;Line 35: &lt;br /&gt;&lt;font color="#ff0000"&gt;Line 36:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sprdsheet As SpreadsheetDocument = SpreadsheetDocument.Create(FileName, SpreadsheetDocumentType.Workbook)&lt;br /&gt;&lt;/font&gt;Line 37:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim WrkBookPart As WorkbookPart = sprdsheet.AddWorkbookPart&lt;br /&gt;Line 38:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim wrkbook As New Workbook&lt;/p&gt;
&lt;p&gt;At the start of my class I import the following:&lt;/p&gt;
&lt;p&gt;Imports System.IO&lt;/p&gt;
&lt;p&gt;Imports System.Linq&lt;br /&gt;Imports DocumentFormat.OpenXml&lt;br /&gt;Imports DocumentFormat.OpenXml.Packaging&lt;br /&gt;Imports DocumentFormat.OpenXml.Spreadsheet&lt;/p&gt;
&lt;p&gt;Public Class clsExcel&lt;/p&gt;
&lt;p&gt;Public Sub NewSpreadsheet()&lt;br /&gt;(see above)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure what I am doing wrong / missing and the usual searching of the web is turning up nothing. Could someone please help?&lt;/p&gt;
&lt;p&gt;NB. I do not currently have Office 2007 installed on my PC so I am not sure if this is a pre-requisite for running OpenOfficeXML, my assumption is that it is not ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Problem in sending mail after upgrade to exchange 2007</title><link>http://forums.asp.net/thread/3527692.aspx</link><pubDate>Mon, 23 Nov 2009 11:23:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527692</guid><dc:creator>bhidwariav@iocl.co.in</dc:creator><author>bhidwariav@iocl.co.in</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3527692.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3527692</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to send mail through Exchange 2007 but error comes saying &amp;quot;Untitled Page
Syntax error, command unrecognized. The server response was: 5.7.3 
Authentication unsuccessful. &amp;quot;&lt;/p&gt;&lt;p&gt;Please help.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The code is as follows:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Imports System.net.Mail&lt;br /&gt;Imports System.IO&lt;br /&gt;Partial Class _Default&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits System.Web.UI.Page&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Mail As New MailMessage(New MailAddress(&amp;quot;&lt;b&gt;from_email_id&lt;/b&gt;&amp;quot;, &amp;quot;&amp;quot;), New MailAddress(&amp;quot;&lt;b&gt;to_email_id&lt;/b&gt;&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mail.IsBodyHtml = True&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mail.Subject = &amp;quot;Test Mail&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mail.Body = &amp;quot;Dear Sir, &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;eMail Request is made for Creation &amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;List of Officers who have applied for email creation at BR &amp;lt;br/&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &amp;lt;BR&amp;gt; &amp;lt;BR&amp;gt; &amp;lt;BR&amp;gt; &amp;lt;font color = blue&amp;gt; &amp;lt;b&amp;gt;Please do not reply to this email. &amp;lt;BR&amp;gt;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim smtp As New SmtpClient(&amp;quot;IP_OF_SERVER&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim credentials As New System.Net.NetworkCredential(&amp;quot;&lt;b&gt;USERNAME&lt;/b&gt;&amp;quot;, &amp;quot;&lt;b&gt;PASSWORD&lt;/b&gt;&amp;quot;, &amp;quot;&lt;b&gt;DOMAIN&lt;/b&gt;&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp.UseDefaultCredentials = False&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp.Port = 587&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp.Credentials = credentials&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; smtp.Send(Mail)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Button1.Text = &amp;quot;OK&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(ex.Message.ToString)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&amp;nbsp;&amp;nbsp; End Class&lt;/p&gt;</description></item><item><title>Export to Excel and Filename</title><link>http://forums.asp.net/thread/3527793.aspx</link><pubDate>Mon, 23 Nov 2009 12:23:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527793</guid><dc:creator>saintperez</dc:creator><author>saintperez</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3527793.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3527793</wfw:commentRss><description>&lt;p&gt;Hello, I am stuck&amp;nbsp;on a problem with the out of data to Excel via&amp;nbsp;&lt;font size="2"&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Current.Response.AddHeader(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;content-disposition&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;attachment; filename={0}&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;DummyTTDownload.xls&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;));&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Current.Response.ContentType = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;application/excel&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;No matter what I do my output file contains &amp;quot;[1]&amp;quot; in the &amp;nbsp;name in the form of myfile[1].xls when I click on the &amp;quot;Open&amp;quot; button. I have cleared temp folder and&amp;nbsp; I still get the same thing. THe funny this is that if I click Save instead of Open the filename in the save dialog does not contain the &amp;quot;[1]&amp;quot;. I cannot rely on the user to save the file on his/her computer with the name I want. Any advice is greatly appreciated:&lt;/p&gt;
&lt;p&gt;I am using a third party tool for writing to the stream wich is helping me to export two DataTables to two sheets within the same workbook. &lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Current.Response.AddHeader(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;content-disposition&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;attachment; filename={0}&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;DummyTTDownload.xls&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;));&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpContext&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Current.Response.ContentType = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;application/excel&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;
&lt;p&gt;VM.xPort.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Style&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oDateStyle = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; VM.xPort.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Style&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;DateFormat&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Tickets&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, 0, 0, oDS.Tables[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Tickets&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Rows.Count - 1, oDS.Tables[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Tickets&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Columns.Count - 1);&lt;/p&gt;
&lt;p&gt;oD.Styles.Add(oDateStyle); &lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MemoryStream&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; exportStream = (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MemoryStream&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)oD.ExportToStream(oDS, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;xpOutputFormat&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Excel8, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;); &lt;/p&gt;
&lt;p&gt;Response.OutputStream.Write(exportStream.ToArray(), 0, (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)exportStream.Length);&lt;/p&gt;
&lt;p&gt;exportStream.Close();&lt;/p&gt;
&lt;p&gt;exportStream = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Create a excel file and prompt user to save it</title><link>http://forums.asp.net/thread/1519695.aspx</link><pubDate>Fri, 05 Jan 2007 11:49:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1519695</guid><dc:creator>Usman Ghani</dc:creator><author>Usman Ghani</author><slash:comments>13</slash:comments><comments>http://forums.asp.net/thread/1519695.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=1519695</wfw:commentRss><description>&lt;p&gt;Hi There,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am developing a website in vb.net, one part of it requires me to reade data from a db, save it in excel file and then prompt user to save this file. I have just no idea on how to create and write to an excelfile and prompt user to save it. Can someone here guide me pls how to achieve it and how to achieve all this, any special user permisisons required?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards,&lt;/p&gt;
&lt;p&gt;Usman Ghani&lt;/p&gt;</description></item><item><title>how to make plug in for outlook</title><link>http://forums.asp.net/thread/3525218.aspx</link><pubDate>Sat, 21 Nov 2009 06:55:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525218</guid><dc:creator>pradeepBaloni</dc:creator><author>pradeepBaloni</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3525218.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3525218</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hello....&lt;/p&gt;
&lt;p&gt;hoe i make plug in for outlook.....&lt;/p&gt;
&lt;p&gt;i don,t know how i start??????????????????&lt;/p&gt;
&lt;p&gt;plz reply&lt;/p&gt;</description></item><item><title>Cannot create activex Component</title><link>http://forums.asp.net/thread/3516513.aspx</link><pubDate>Tue, 17 Nov 2009 01:38:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3516513</guid><dc:creator>omel81</dc:creator><author>omel81</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3516513.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3516513</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi All,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got some problem with my Mail Merge Function on Server. (Merge to mic. word).&amp;nbsp; The problem is &amp;quot;cannot create activex Component&amp;quot;.&amp;nbsp; My Mail merge flow is Click 1 Hyperlink and go to word.application.&lt;/p&gt;
&lt;p&gt;When i run that system in my PC...everything is ok...no error.&amp;nbsp; In my PC using Mic. Office 2003.&lt;/p&gt;
&lt;p&gt;When i deploy my system to server and run.&amp;nbsp; I got error cannot create activex component. In Server using Mic. Office 2007.&amp;nbsp; For ur information , everything in mic. office i install but still can&amp;#39;t solved my problem.&amp;nbsp; Help me please?.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>extract csv </title><link>http://forums.asp.net/thread/3525579.aspx</link><pubDate>Sat, 21 Nov 2009 13:37:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525579</guid><dc:creator>shaf555</dc:creator><author>shaf555</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3525579.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3525579</wfw:commentRss><description>&lt;p&gt;Can&amp;nbsp;any&amp;nbsp;one give me&amp;nbsp;a sample&lt;br /&gt;script to extract data from a specific location of a CSV file and export to&lt;br /&gt;a specific cell in Excel file?&amp;nbsp;pls........&lt;/p&gt;</description></item><item><title>Read and Write MS Excel file using c#.net</title><link>http://forums.asp.net/thread/3525158.aspx</link><pubDate>Sat, 21 Nov 2009 05:39:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525158</guid><dc:creator>sachin_07</dc:creator><author>sachin_07</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3525158.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3525158</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;/p&gt;&lt;p&gt;I want to read multiple Microsoft Office e Excel files and
want to consolidate those into one Excel file.&lt;/p&gt;
&lt;p&gt;Please help me regarding the same.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Sachin&lt;/p&gt;</description></item><item><title>Get picture from Excel</title><link>http://forums.asp.net/thread/3525356.aspx</link><pubDate>Sat, 21 Nov 2009 09:47:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525356</guid><dc:creator>1306</dc:creator><author>1306</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3525356.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3525356</wfw:commentRss><description>&lt;p&gt;Hi..all&lt;/p&gt;&lt;p&gt;i&amp;#39;am working with asp.net(C#) vs2005, and i have jobs to get picture in file Excel and save as that picture into drive D:&lt;/p&gt;&lt;p&gt;before,.. i&amp;#39;am sorry if my english is not good..&lt;/p&gt;&lt;p&gt;thank&amp;#39;s all..&lt;/p&gt;</description></item><item><title>SAP.NET Connector and Visual Studio 2005</title><link>http://forums.asp.net/thread/1248566.aspx</link><pubDate>Wed, 05 Apr 2006 13:08:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1248566</guid><dc:creator>Neo77</dc:creator><author>Neo77</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/1248566.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=1248566</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Not shure if I am in the right forum section ;-)&lt;/p&gt;
&lt;p&gt;We are using the ASP.NET Connector 1.0 with Visual Studio 2003 and want to update to ASP.NET Connector 2.0.1 (which is designed for .NET 2.0 ???) and Visual Studio 2005.&lt;/p&gt;
&lt;p&gt;But I've got no SAP stuff in VS 2005 to create a proxy or so...&lt;br /&gt;Is there a way to integrate the SAP.NET Connector to VS 2005?&lt;/p&gt;
&lt;p&gt;Anyone tried this or got a solution/hint?&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item><item><title>Word Automation using Microsoft office template in c#</title><link>http://forums.asp.net/thread/3523643.aspx</link><pubDate>Fri, 20 Nov 2009 09:57:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523643</guid><dc:creator>oty.prem</dc:creator><author>oty.prem</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3523643.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3523643</wfw:commentRss><description>&lt;p&gt;Hi everybody..&lt;/p&gt;&lt;p&gt;I want to create a msword report using microsoft office predefined template in which i have to insert dynamic datas ,charts,images ,shapes .&lt;/p&gt;&lt;p&gt;Please suggest me how i can achieve this and send me some usefull links where i can get the tutorials&lt;/p&gt;&lt;p&gt;Thanks in advance....&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Word Automation  Export to word Problem </title><link>http://forums.asp.net/thread/3522563.aspx</link><pubDate>Thu, 19 Nov 2009 19:11:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522563</guid><dc:creator>gsrs_shane</dc:creator><author>gsrs_shane</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3522563.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3522563</wfw:commentRss><description>&lt;p&gt;Hi ,&lt;br /&gt;I am using word Automation to export to word .&lt;br /&gt;I am getting a exception like &lt;br /&gt;ex.message gives :- Command only available in print layout view.&lt;br /&gt;ex.stacktrace gives :- at Word.View.set_SeekView(WdSeekView prop)&lt;br /&gt;My code is I am trying to add a Image to Header ... &lt;br /&gt;oWord.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekCurrentPageHeader;&lt;br /&gt;logoCustom = oWord.Selection.HeaderFooter.Shapes.AddPicture(logoPath,&lt;br /&gt;logoCustom.Select(&lt;br /&gt;logoCustom.Name = &lt;br /&gt;logoCustom.Left = (&lt;br /&gt;String logoPath = GetImgPath();ref oFalse, ref oTrue, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);ref oMissing);&amp;quot;CustomLogo&amp;quot;;float)WdShapePosition.wdShapeLeft;&lt;br /&gt;//SETTING FOCUES BACK TO DOCUMENT &lt;br /&gt;oWord.ActiveWindow.ActivePane.View.SeekView = &lt;br /&gt;WdSeekView.wdSeekMainDocument;&lt;br /&gt;Can you please help me out...&lt;br /&gt;I am using word 2003 and windows server 2003 &lt;br /&gt;Can you please help me out...&amp;nbsp;&lt;/p&gt;</description></item><item><title>how to use plug in for outlook</title><link>http://forums.asp.net/thread/3521917.aspx</link><pubDate>Thu, 19 Nov 2009 13:10:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521917</guid><dc:creator>pradeepBaloni</dc:creator><author>pradeepBaloni</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3521917.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3521917</wfw:commentRss><description>&lt;p&gt;how to&amp;nbsp;plug in for outlook with calender ????????????&lt;/p&gt;
&lt;p&gt;plz reply...........&lt;/p&gt;</description></item><item><title>How to download emails from exchange server using C#.net</title><link>http://forums.asp.net/thread/3521186.aspx</link><pubDate>Thu, 19 Nov 2009 07:09:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521186</guid><dc:creator>pathipati</dc:creator><author>pathipati</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3521186.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3521186</wfw:commentRss><description>&lt;p&gt;How to download emails from exchange server using C#.net?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Error : System.Runtime.InteropServices.COMException: Command failed</title><link>http://forums.asp.net/thread/3518780.aspx</link><pubDate>Wed, 18 Nov 2009 03:06:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3518780</guid><dc:creator>openupped</dc:creator><author>openupped</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3518780.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3518780</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I make an asp.net project dealing with Microsoft.Office.Interop.Word.&lt;br /&gt;It is working fine while running on VStudio 2005 Development Server.&lt;br /&gt;&lt;br /&gt;But when I switch it to Win Server 2003, I get the following error :&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Exception Details: System.Runtime.InteropServices.COMException: Command failed&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source Error: &lt;br /&gt;Line 24:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWordApp.Visible = True &amp;#39;IIf(chkShowWord.Checked, True, False)&lt;br /&gt;Line 25:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Open an existing document.&lt;br /&gt;&lt;font color="red"&gt;Line 26:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWordApp.Documents.Open(&amp;quot;C:\Sample.doc&amp;quot;)&lt;/font&gt;&lt;br /&gt;Line 27:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objDoc = objWordApp.ActiveDocument&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can somone please help ??!!!&lt;/p&gt;</description></item><item><title>Problem while connectiong the MailBOX using POP3 (Very Much Urgent Issue)</title><link>http://forums.asp.net/thread/3519330.aspx</link><pubDate>Wed, 18 Nov 2009 09:30:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519330</guid><dc:creator>ravi_gupta_it@yahoo.com</dc:creator><author>ravi_gupta_it@yahoo.com</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3519330.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3519330</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;when i trying to connect the&amp;nbsp;MailBox using POP3&amp;nbsp;it gives an error &amp;quot;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 78.105.175.186:110&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please suggect. it&amp;#39;s very much urgent Issue&amp;nbsp;&lt;/p&gt;</description></item><item><title>concatenating openxml documents with openxml sdk 2</title><link>http://forums.asp.net/thread/3519222.aspx</link><pubDate>Wed, 18 Nov 2009 08:30:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519222</guid><dc:creator>TheChristian</dc:creator><author>TheChristian</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3519222.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3519222</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got this issue and i don&amp;#39;t know how to sort it out.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried with altchunk solution but it seeams that documents headers are missed and i cantl figure out how to fix it.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item><item><title>problems with images in header in open XML SDK </title><link>http://forums.asp.net/thread/3519210.aspx</link><pubDate>Wed, 18 Nov 2009 08:18:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519210</guid><dc:creator>catsloveuse</dc:creator><author>catsloveuse</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3519210.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3519210</wfw:commentRss><description>&lt;p&gt;Hello everybody, &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am working for three days on a simple picture to add in the header part.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;When I add text in the hedare it works, when I add a picture in the document, it works, but when I want to insert the same picture in th eheader it generate error when I want to open the doument in Office Word 2007. &lt;/p&gt;&lt;p&gt;Does anybody got an idea ??&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here a peace of the code where there must be a mistake :&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp:showcolumns"&gt;public Header MakeHeader()&lt;br /&gt;    {&lt;br /&gt;        Header header = new Header();&lt;br /&gt;       // Paragraph paragraph = new Paragraph();&lt;br /&gt;        &lt;br /&gt;        //Text text = new Text();&lt;br /&gt;        //text.Text = &amp;quot;blabla&amp;quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        ParagraphProperties paragraphProperties = new ParagraphProperties(&lt;br /&gt;                        new ParagraphStyleId() { Val = &amp;quot;Header&amp;quot; },&lt;br /&gt;                        new Tabs());&lt;br /&gt;&lt;br /&gt;        Paragraph paragraph = new Paragraph(&lt;br /&gt;&lt;br /&gt;                    paragraphProperties,&lt;br /&gt;                    new Run(&lt;br /&gt;                            new RunProperties(&lt;br /&gt;                                new NoProof()),&lt;br /&gt;                              new SimpleField(&lt;br /&gt;                            new Drawing(&lt;br /&gt;                                new wp.Inline(&lt;br /&gt;                                    new wp.Extent() { Cx = 975250L, Cy = 731410L },&lt;br /&gt;                                    new wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L },&lt;br /&gt;                                    new wp.DocProperties() { Id = (UInt32Value)1U, Name = &amp;quot;myPicture&amp;quot;, Description = &amp;quot;C:\\picture.png&amp;quot; },&lt;br /&gt;                                    new wp.NonVisualGraphicFrameDrawingProperties(&lt;br /&gt;                                        new a.GraphicFrameLocks() { NoChangeAspect = true }),&lt;br /&gt;                                    new a.Graphic(&lt;br /&gt;                                        new a.GraphicData(&lt;br /&gt;                                            new pic.Picture(&lt;br /&gt;                                                new pic.NonVisualPictureProperties(&lt;br /&gt;                                                    new pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = &amp;quot;C:\\picture.png&amp;quot; },&lt;br /&gt;                                                    new pic.NonVisualPictureDrawingProperties()),&lt;br /&gt;                                                new pic.BlipFill(&lt;br /&gt;                                                    new a.Blip() { Embed = &amp;quot;rIdImagePart1&amp;quot;, CompressionState = a.BlipCompressionValues.Print },&lt;br /&gt;                                                    new a.Stretch(&lt;br /&gt;                                                        new a.FillRectangle())),&lt;br /&gt;                                                new pic.ShapeProperties(&lt;br /&gt;                                                    new a.Transform2D(&lt;br /&gt;                                                        new a.Offset() { X = 0L, Y = 0L },&lt;br /&gt;                                                        new a.Extents() { Cx = 9753600L, Cy = 7315200L }),&lt;br /&gt;                                                    new a.PresetGeometry(&lt;br /&gt;                                                        new a.AdjustValueList()&lt;br /&gt;                                                    ) { Preset = a.ShapeTypeValues.Rectangle }))&lt;br /&gt;                                        ) { Uri = &amp;quot;http://schemas.openxmlformats.org/drawingml/2006/picture&amp;quot; })&lt;br /&gt;                                )))));&lt;br /&gt;        header.Append(paragraph);&lt;br /&gt;&lt;br /&gt;        return header;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;        Footer footer = new Footer();&lt;br /&gt;&lt;br /&gt;        ParagraphProperties paragraphProperties = new ParagraphProperties(&lt;br /&gt;                        new ParagraphStyleId() { Val = &amp;quot;Footer&amp;quot; },&lt;br /&gt;                        new Tabs(&lt;br /&gt;                            new TabStop() { Val = TabStopValues.Clear, Position = 4320 },&lt;br /&gt;                            new TabStop() { Val = TabStopValues.Clear, Position = 8640 },&lt;br /&gt;                            new TabStop() { Val = TabStopValues.Center, Position = 4820 },&lt;br /&gt;                            new TabStop() { Val = TabStopValues.Right, Position = 9639 }));&lt;br /&gt;&lt;br /&gt;        Paragraph paragraph = new Paragraph(&lt;br /&gt;&lt;br /&gt;                    paragraphProperties,&lt;br /&gt;                    new Run(&lt;br /&gt;                        new FieldChar() { FieldCharType = FieldCharValues.Begin }),&lt;br /&gt;                    new Run(&lt;br /&gt;                        new FieldCode(&amp;quot; TITLE   \\* MERGEFORMAT &amp;quot;) { Space = &amp;quot;preserve&amp;quot; }&lt;br /&gt;                    ),&lt;br /&gt;                    new Run(&lt;br /&gt;                        new FieldChar() { FieldCharType = FieldCharValues.End }),&lt;br /&gt;&lt;br /&gt;                    new Run(&lt;br /&gt;                        new PositionalTab() { Alignment = AbsolutePositionTabAlignmentValues.Center, RelativeTo = AbsolutePositionTabPositioningBaseValues.Margin, Leader = AbsolutePositionTabLeaderCharValues.None }&lt;br /&gt;                    ),&lt;br /&gt;                    new Run(&lt;br /&gt;                        new PositionalTab() { Alignment = AbsolutePositionTabAlignmentValues.Right, RelativeTo = AbsolutePositionTabPositioningBaseValues.Margin, Leader = AbsolutePositionTabLeaderCharValues.None }&lt;br /&gt;                    ),&lt;br /&gt;                    new Run(&lt;br /&gt;                        new Text(&amp;quot;Page &amp;quot;) { Space = &amp;quot;preserve&amp;quot; }&lt;br /&gt;                    ),&lt;br /&gt;                    new SimpleField(&lt;br /&gt;                        new Run(&lt;br /&gt;                            new RunProperties(&lt;br /&gt;                                new NoProof()),&lt;br /&gt;                            new Text(&amp;quot;1&amp;quot;)&lt;br /&gt;                        )&lt;br /&gt;                    ) { Instruction = &amp;quot; PAGE   \\* MERGEFORMAT &amp;quot; }&lt;br /&gt;                );&lt;br /&gt;&lt;br /&gt;        footer.Append(paragraph);&lt;br /&gt;&lt;br /&gt;        return footer;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    private static Document GenerateMainDocumentPart(structure Content)&lt;br /&gt;    {&lt;br /&gt;        var element =&lt;br /&gt;            new Document(&lt;br /&gt;                Content.Display(),&lt;br /&gt;                new Body(&lt;br /&gt;                    new Paragraph(&lt;br /&gt;                        new Run(&lt;br /&gt;                            new RunProperties(&lt;br /&gt;                                new NoProof()),&lt;br /&gt;                            new Drawing(&lt;br /&gt;                                new wp.Inline(&lt;br /&gt;                                    new wp.Extent() { Cx = 975250L, Cy = 731410L },&lt;br /&gt;                                    new wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L },&lt;br /&gt;                                    new wp.DocProperties() { Id = (UInt32Value)1U, Name = &amp;quot;myPicture&amp;quot;, Description = &amp;quot;C:\\picture.png&amp;quot; },&lt;br /&gt;                                    new wp.NonVisualGraphicFrameDrawingProperties(&lt;br /&gt;                                        new a.GraphicFrameLocks() { NoChangeAspect = true }),&lt;br /&gt;                                    new a.Graphic(&lt;br /&gt;                                        new a.GraphicData(&lt;br /&gt;                                            new pic.Picture(&lt;br /&gt;                                                new pic.NonVisualPictureProperties(&lt;br /&gt;                                                    new pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = &amp;quot;C:\\picture.png&amp;quot; },&lt;br /&gt;                                                    new pic.NonVisualPictureDrawingProperties()),&lt;br /&gt;                                                new pic.BlipFill(&lt;br /&gt;                                                    new a.Blip() { Embed = &amp;quot;rIdImagePart1&amp;quot;, CompressionState = a.BlipCompressionValues.Print },&lt;br /&gt;                                                    new a.Stretch(&lt;br /&gt;                                                        new a.FillRectangle())),&lt;br /&gt;                                                new pic.ShapeProperties(&lt;br /&gt;                                                    new a.Transform2D(&lt;br /&gt;                                                        new a.Offset() { X = 0L, Y = 0L },&lt;br /&gt;                                                        new a.Extents() { Cx = 9753600L, Cy = 7315200L }),&lt;br /&gt;                                                    new a.PresetGeometry(&lt;br /&gt;                                                        new a.AdjustValueList()&lt;br /&gt;                                                    ) { Preset = a.ShapeTypeValues.Rectangle }))&lt;br /&gt;                                        ) { Uri = &amp;quot;http://schemas.openxmlformats.org/drawingml/2006/picture&amp;quot; })&lt;br /&gt;                                ) { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }))&lt;br /&gt;                    ) { RsidParagraphAddition = &amp;quot;00A2180E&amp;quot;, RsidRunAdditionDefault = &amp;quot;00EC4DA7&amp;quot; },&lt;br /&gt;                    new SectionProperties(&lt;br /&gt;                        new HeaderReference()&lt;br /&gt;                        {&lt;br /&gt;                            Type = HeaderFooterValues.Default,&lt;br /&gt;                            Id = &amp;quot;rId2&amp;quot;&lt;br /&gt;                        },&lt;br /&gt;                        new FooterReference()&lt;br /&gt;                        {&lt;br /&gt;                            Type = HeaderFooterValues.Default,&lt;br /&gt;                            Id = &amp;quot;rId3&amp;quot;&lt;br /&gt;                        },&lt;br /&gt;&lt;br /&gt;                        new PageSize() { Width = (UInt64Value)11906U, Height = (UInt64Value)16838U },&lt;br /&gt;                        new PageMargin() { Top = 1000, Right = (UInt64Value)1200U, Bottom = 1000, Left = (UInt64Value)1200U, Header = (UInt64Value)851U, Footer = (UInt64Value)992U, Gutter = (UInt64Value)0U }//,&lt;br /&gt;            //new Columns() { Space = (UInt64Value)425U },&lt;br /&gt;            //new DocGrid() { Type = DocGridValues.Lines, LinePitch = 312 }&lt;br /&gt;                    ) { RsidR = &amp;quot;00A2180E&amp;quot;, RsidSect = &amp;quot;00A2180E&amp;quot; }));&lt;br /&gt;        return element;&lt;br /&gt;    }&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; The footer works perfectly, the header whithout the picture works too, but this code doesn&amp;#39;t work, please tell me why...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thank you very much for your help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Retrieving the COM class factory.... Error Message</title><link>http://forums.asp.net/thread/1384991.aspx</link><pubDate>Wed, 30 Aug 2006 15:31:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1384991</guid><dc:creator>Gregosc</dc:creator><author>Gregosc</author><slash:comments>11</slash:comments><comments>http://forums.asp.net/thread/1384991.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=1384991</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I try to create an appointment in the user calendar from aspx page with the following code :&lt;/p&gt;&lt;p&gt;Imports&lt;font size="2"&gt;&lt;font color="#000000"&gt; Microsoft.Office.Interop.Outlook&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;p&gt;Dim&lt;font size="2"&gt; objOutlook &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;font size="2"&gt; Application&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; objOutlookAppt &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; MailItem&lt;p&gt;objOutlookAppt = objOutlook.CreateItem(OlItemType.olMailItem)&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;With&lt;/font&gt;&lt;font size="2"&gt; objOutlookAppt&lt;p&gt;.Subject = &lt;font color="#800000" size="2"&gt;&amp;quot;test&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;.To = &lt;font color="#800000" size="2"&gt;&amp;quot;gregory.schneider@kpmg.lu&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;.Send()&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;With&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;p&gt;But I&amp;#39;ve always the same message : &lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;h2&gt;&lt;em&gt;Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.&lt;/em&gt; &lt;/h2&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;strong&gt;Description: &lt;/strong&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Exception Details: &lt;/strong&gt;System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Thanks a lot&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Gr&amp;eacute;g&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Opening Microsoft Word with ASP.NET (VB)</title><link>http://forums.asp.net/thread/2310624.aspx</link><pubDate>Mon, 21 Apr 2008 11:24:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2310624</guid><dc:creator>Nalum</dc:creator><author>Nalum</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/2310624.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=2310624</wfw:commentRss><description>&lt;p&gt;Hey all,&lt;/p&gt;&lt;p&gt;I need to open a document with ASP.NET in MS Word&amp;nbsp; but I don&amp;#39;t really know how to go about it. I&amp;#39;ve read that I need to add Microsoft.Office.Interop name space, or a COM but other than that I don&amp;#39;t have a clue what I have to do to do this.&lt;/p&gt;&lt;p&gt;Thanks for any help given&amp;nbsp;&lt;/p&gt;</description></item><item><title>Excel 2007/ASP.NET Exception using .Workbooks.Add()</title><link>http://forums.asp.net/thread/1665135.aspx</link><pubDate>Fri, 13 Apr 2007 19:28:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1665135</guid><dc:creator>gsbell</dc:creator><author>gsbell</author><slash:comments>11</slash:comments><comments>http://forums.asp.net/thread/1665135.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=1665135</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am receiving the following exception when using the xlApp.&lt;b&gt;Workbooks.Add()&lt;/b&gt; method with ASP.NET and Office 2007.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;b&gt;&lt;span style="font-size:14pt;font-family:'Arial','sans-serif';"&gt;Server Error in '/ExcelTest'
Application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;div class="MsoNormal" style="text-align:center;line-height:normal;" align="center"&gt;&lt;b&gt;&lt;span style="font-size:14pt;font-family:'Arial','sans-serif';"&gt;

&lt;hr style="color:silver;" align="center" /&gt;

&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;b&gt;&lt;i&gt;&lt;span style="font-size:10pt;font-family:'Arial','sans-serif';"&gt;Microsoft Office Excel cannot open or save any more
documents because there is not enough available memory or disk space. &lt;br /&gt;
&lt;br /&gt;
• To make more memory available, close workbooks or programs you no longer
need. &lt;br /&gt;
&lt;br /&gt;
• To free disk space, delete files you no longer need from the disk you are
saving to.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size:10pt;font-family:'Arial','sans-serif';"&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;

            &lt;b&gt; Exception Details: &lt;/b&gt;System.Runtime.InteropServices.COMException:
Microsoft Office Excel cannot open or save any more documents because
there is not enough available memory or disk space.&amp;nbsp; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;There is plenty of disk space and memory on the servers.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;What's really strange is that it works OK when I specify a template with the Add method:&lt;br /&gt;&amp;nbsp;.Workbooks.Add(Server.MapPath("~") &amp;amp; "\ReportTemplate.xls")&lt;/p&gt;&lt;p&gt;So that's a workaround anyway...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Below is a small sample I'm using to try and debug this problem.&lt;/p&gt;&lt;p&gt;In a new web project, add a reference to &lt;b&gt;Microsoft Excel 12.0 Object Library&lt;/b&gt;, add a button named &lt;b&gt;btnGenerateReport&lt;/b&gt;, a label named &lt;b&gt;lblStatus&lt;/b&gt;, and a Hyperlink named &lt;b&gt;lnkExcelReport &lt;/b&gt;to &lt;b&gt;Default.aspx&lt;/b&gt; and paste the following procedure into the code-behind file: &lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;Imports&lt;/span&gt; Excel = Microsoft.Office.Interop.Excel
&lt;span class="kwd"&gt;Imports&lt;/span&gt; System.IO

Partial &lt;span class="kwd"&gt;Class&lt;/span&gt; _Default
    &lt;span class="kwd"&gt;Inherits&lt;/span&gt; System.Web.UI.Page

    &lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; Page_Load(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.EventArgs) &lt;span class="kwd"&gt;Handles Me&lt;/span&gt;.Load

    &lt;span class="kwd"&gt;End Sub

    Protected Sub&lt;/span&gt; btnGenerateReport_Click(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.EventArgs) &lt;span class="kwd"&gt;Handles&lt;/span&gt; btnGenerateReport.Click
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; xlApp &lt;span class="kwd"&gt;As&lt;/span&gt; Excel.Application = &lt;span class="kwd"&gt;New&lt;/span&gt; Excel.Application

        xlApp.SheetsInNewWorkbook = 1
        xlApp.Application.DisplayAlerts = &lt;span class="kwd"&gt;False&lt;/span&gt;
        xlApp.Application.AskToUpdateLinks = &lt;span class="kwd"&gt;False&lt;/span&gt;
        xlApp.Visible = &lt;span class="kwd"&gt;False&lt;/span&gt;

        &lt;span class="cmt"&gt;''''Dim xlBook As Excel.Workbook = xlApp.Workbooks.Add(Server.MapPath("~") &amp;amp; "\ReportTemplate.xls")	' WORKS OKAY&lt;/span&gt;
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; xlBook &lt;span class="kwd"&gt;As&lt;/span&gt; Excel.Workbook = xlApp.Workbooks.Add()	' THROWS EXCEPTION
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; xlSheet &lt;span class="kwd"&gt;As&lt;/span&gt; Excel.Worksheet = xlBook.Sheets(1)

        xlSheet.Range(&lt;span class="st"&gt;"A1"&lt;/span&gt;).Value = &lt;span class="st"&gt;"Hello World!"&lt;/span&gt;

        &lt;span class="kwd"&gt;If&lt;/span&gt; xlSheet IsNot &lt;span class="kwd"&gt;Nothing Then&lt;/span&gt;
            xlSheet = &lt;span class="kwd"&gt;Nothing
        End If

        If&lt;/span&gt; xlBook IsNot &lt;span class="kwd"&gt;Nothing Then&lt;/span&gt;
            xlBook.SaveAs(Server.MapPath(&lt;span class="st"&gt;"~"&lt;/span&gt;) &amp;amp; &lt;span class="st"&gt;"\Reports\Test.xls"&lt;/span&gt;)
            xlBook.Close(&lt;span class="kwd"&gt;False&lt;/span&gt;)

            xlBook = &lt;span class="kwd"&gt;Nothing
        End If

        If&lt;/span&gt; xlApp IsNot &lt;span class="kwd"&gt;Nothing Then&lt;/span&gt;
            xlApp.Quit()
            xlApp = &lt;span class="kwd"&gt;Nothing
        End If&lt;/span&gt;

        lnkExcelReport.NavigateUrl = Request.ApplicationPath &amp;amp; &lt;span class="st"&gt;"/Reports/Test.xls"&lt;/span&gt;
        lnkExcelReport.Text = &lt;span class="st"&gt;"Test.xls"&lt;/span&gt;
    &lt;span class="kwd"&gt;End Sub
End Class&lt;/span&gt;
&lt;/pre&gt;Is anyone able to reproduce this or know of a solution?&lt;/pre&gt;&lt;p&gt;Thanks,&lt;br /&gt;Gordon Bell&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Setting workbook options on excel services via asp.net</title><link>http://forums.asp.net/thread/3515937.aspx</link><pubDate>Mon, 16 Nov 2009 17:55:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515937</guid><dc:creator>titiyoyo</dc:creator><author>titiyoyo</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3515937.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3515937</wfw:commentRss><description>&lt;p&gt;Hello, I am trying to code a web interface in C# using Excel Calculation Services, to publish an excel workbook with only some of it&amp;#39;s worksheets made visible. It would be just like setting the workbook&amp;#39;s publishing options in Excel 2007. Problem is, i don&amp;#39;t find any method or API to do this... Can somebody help me on this ?&lt;/p&gt;</description></item><item><title>Download excel sheet problem</title><link>http://forums.asp.net/thread/2675595.aspx</link><pubDate>Fri, 10 Oct 2008 15:41:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2675595</guid><dc:creator>hemal2801</dc:creator><author>hemal2801</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/2675595.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=2675595</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hi Experts,&lt;/p&gt;&lt;p&gt;I just want to tell you that i had a problem at the time of import excel file.&lt;/p&gt;&lt;p&gt;Programme is in ASP.NET and C#.NET &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have one grid view which bind at design time and two combo box on the grid in Row temp let.&lt;/p&gt;&lt;p&gt;I have download excel file without this two combo box.&lt;/p&gt;&lt;p&gt;but
column header has different name at design time like (01,02,03,......)
and Column has different name in Table format in DB like (Col 1,Col
2,.......)&lt;/p&gt;&lt;p&gt;Excel sheet download with 01 column name.&lt;/p&gt;&lt;p&gt;I am using Ole Db connection object to Make connection and import excel data to SQL database. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;but at the time of connection it gives below error.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;when i want to import this file it gives error like (External table format is not valid)&lt;/p&gt;&lt;p&gt;Please help me out &lt;br /&gt;&lt;/p&gt;</description></item><item><title>ExportAsFixedFormat strange problem</title><link>http://forums.asp.net/thread/3517201.aspx</link><pubDate>Tue, 17 Nov 2009 09:36:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3517201</guid><dc:creator>ali_mostafa901</dc:creator><author>ali_mostafa901</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3517201.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3517201</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hello guys:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m developing an application to export Excel file to pdf format.&lt;/p&gt;
&lt;p&gt;when running the application on my local machine , every thing is ok&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;when&amp;nbsp;hosting my application on the iis , i faced a strange problem .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1-if&amp;nbsp;the host machine&amp;#39;s windows version is windows xp sp2 , every thing is ok.&lt;/p&gt;
&lt;p&gt;2-if the host machine&amp;#39;s windows version is windows xp sp3 or windows server 2003 sp2 , the application hangs and the conversion process failed&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;i don&amp;#39;t know the reason. please it is an urgent issue and i need urgent help&lt;/p&gt;
&lt;p&gt;this is my code sample for conversion process:&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="0"&gt;&lt;font color="#0000ff" size="0"&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="+0"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub &lt;/font&gt;&lt;/font&gt;ConvertWorkbookToPDFXPS()&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Declare variables to hold references to the Excel ApplicationClass&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; and Workbook objects. &lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; excelApplication &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ApplicationClass = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; excelWorkbook &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Workbook = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; missing &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = System.Reflection.Missing.Value&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Declare a variable for the path to the workbook to convert.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramSourceBookPath &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = Server.MapPath(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Reports.xlsx&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Declare variables for the Document.ExportAsFixedFormat method parameters.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramExportFilePath &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = Server.MapPath(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;MCS.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramExportFormat &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XlFixedFormatType = XlFixedFormatType.xlTypePDF&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramExportQuality &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XlFixedFormatQuality = XlFixedFormatQuality.xlQualityStandard&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramOpenAfterPublish &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Boolean&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramIncludeDocProps &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Boolean&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;True&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramIgnorePrintAreas &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Boolean&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;True&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramFromPage &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = Type.Missing&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; paramToPage &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = Type.Missing&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Create an instance of Excel.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;excelApplication = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Microsoft.Office.Interop.Excel.Application&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Open the source workbook.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;excelWorkbook = excelApplication.Workbooks.Open(Server.MapPath(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Reports.xlsx&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;), &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Save it in the target format.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Not&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; excelWorkbook &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Is&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p style="BACKGROUND-COLOR:yellow;"&gt;excelWorkbook.ExportAsFixedFormat(Microsoft.Office.Interop.Excel.XlFixedFormatType.xlTypePDF, Server.MapPath(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;MCS.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;), Microsoft.Office.Interop.Excel.XlFixedFormatQuality.xlQualityStandard, missing, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, missing, missing, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, missing)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Close the Workbook object.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Not&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; excelWorkbook &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Is&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;excelWorkbook.Close(&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;False&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;excelWorkbook = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Close the ApplicationClass object.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Not&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; excelApplication &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Is&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/p&gt;
&lt;p&gt;excelApplication.Quit()&lt;/p&gt;
&lt;p&gt;excelApplication = &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/p&gt;
&lt;p&gt;GC.Collect()&lt;/p&gt;
&lt;p&gt;GC.WaitForPendingFinalizers()&lt;/p&gt;
&lt;p&gt;GC.Collect()&lt;/p&gt;
&lt;p&gt;GC.WaitForPendingFinalizers()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;thanks&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Read the Selected value from Microsoft.Office.Interop.Excel.DropDown</title><link>http://forums.asp.net/thread/3210197.aspx</link><pubDate>Thu, 04 Jun 2009 11:13:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3210197</guid><dc:creator>srnilagiri</dc:creator><author>srnilagiri</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3210197.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3210197</wfw:commentRss><description>&amp;nbsp; I am able to create a dropdown in Excel with the help of the code given &lt;a href="http://july-code.blogspot.com/2008/03/add-drop-down-list-into-excel-file.html" target="_blank"&gt;here&lt;/a&gt;. I want to read the selected value from the dropdown. I tried this&lt;br /&gt;&lt;pre class="coloredcode"&gt;Microsoft.Office.Interop.Excel.OLEObject obj;&lt;br /&gt;&lt;br /&gt;obj = (Microsoft.Office.Interop.Excel.OLEObject)xlsWorksheet.DropDowns(1);&lt;/pre&gt;&amp;nbsp;&lt;p&gt;&amp;nbsp;but getting exception.Please help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>