|
Hi,
I'm working on a solution to convert Word documents to PDFs through an internal website in C# .Net. I've used the conversion code successfully in a Windows app, but as it turns out we're not allowed to install anything on the machines where this conversion is necessary (long story). IE is available on these machines, so I thought a web-based version would work. The web page works fine when I run it through Visual Studio 2005, but when I browse to the page in IE, it won't even open the Word doc.
I get this error: "System.Runtime.InteropServices.COMException: This command is not available."
Here is the line of code that generates the error: "Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
I don't really want to open the Word doc; the user will have already created it and will be uploading it to the website via the FileUpload object.
The conversion program I'm currently working with is PrimoPDF. We haven't actually purchased it yet, so if someone has a better suggestion, I'm open to it.
Sorry for the longwindedness and thanks for any help!
|
|
|
|
|
Hi Kevin,
If you haven't purchased PrimoPDF - you might be using the demo version?
when you want to use the third party tool why are you making the call to open the word file? as in the line below.
Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
Generally the third party s/w providers will provide some user friendly mechanism such as below.
PDFCreator.GetInstance().Convert(SrcFilePath,TargFilePath);
I am using easyPDF for similar purpose, I am not sure of PrimoPDF . It should be simple. I think you need to go through the document.
-Ram.
|
|
|
|
|
Thanks for responding.
Yes, I am using the demo. As for opening Word, that came right from the instructions. I haven't tried easyPDF, but I'll take a look at it. Are you using it on a website?
Thanks again!
|
|
|
|
|
Yes, it is a web based tool
-Ram
|
|
|
|
|
|
I recently took a class titled: Dreamweaver CS3 wih PHP and MySQL, the class is over and I am trying to do what we did in the class on my own,
We used XAMPP which I installed and is running fine, the problem is we used DBTools Converter to convert and import our Microsoft Access database into MySql server. DBTools converter does not appear to be compatible with Vista, does anyone know what will work?
|
|
|
|
|
Hi,
i made an ocx to be used on web page,and i want to wrap it in a CAB so i could install it in the client.
i use :
myocx.ocx - which need to be register(regsvr32 like)
dll_1.dll - which need to be register(regsvr32 like)
dll_2.dll -= that doesn't need to be installed.
how should my INF look like?
thanks,
Samy.
|
|
|
|
|
Hello there !
i am working on a php based project and i am facing a problem in dealing with the java script radio button, actually i have teo text fields one is for simple search adn other is for advance search i want when i select the radio button "simple" then text field of simple search get enabled and at the same time text field for the advance search gets disabled vice versa. but i try to do on my own both of them gets disabled and other one not gets enabled. i am just unable to understand whts the problem is there and wht should be the exact code to write if pleeeeeeeeeeeeeeeeeeeez any person with such a kind heart will take me out from this problem i will b really thankful for the person ........waiting for a kind help
the code that i tried is:
in html file:
==============
Simple Search
Adv. Search
and in javascript file:
======================
function showSearchOption(opt)
{
if(opt=='1')
{
document.searchfrm.itemName.disabled="disabled";
document.searchfrm.search1.disabled="disabled";
document.searchfrm.pcategory.disabled="disabled";
document.searchfrm.subcategory.disabled="disabled";
}
if(opt=='2')
{
document.simsearch.itemName.disabled="disabled";
document.simsearch.simsearch.disabled="disabled";
document.searchfrm.search1.enabled="enabled";
document.searchfrm.pcategory.enabled="enabled";
document.searchfrm.subcategory.enabled="enabled";
}
}
|
|
|
|
|
The disabled property is a boolean, not a string. You assign it true or false , not "disabled" or "enabled".
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
thanks for yours reply but i have also tried the same thing that u suggest but the same problem is there it not work
|
|
|
|
|
Yes, it does work.
Show the code that you tried with.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Smashing_Perfect wrote: pleeeeeeeeeeeeeeeeeeeez
Take it easy. If someone wants to help, they will. But pleading like this is ridiculous.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
look Mr.Paul Conrad if u dont have the solution of my problem then plz dont reply for my query other wise dont try to mess with me kindly
|
|
|
|
|
Smashing_Perfect wrote: hello........
i dont want yours sugesstion keep it save in yours pocket
Suit yourself. Don't expect people to help then.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hello friends
First at all happy new year of all of you.All the best in next one.))
Cloud you help me please.I will describe the problem.It seens stupid but i did not use VS from 1 year and just now start it again.
So we have GridView inside of it are templates for example label and text box for edit mode which are connected with some db.So the problem is appear when i try to update that data exactly in updating event.After pressing update button in quick watch i see that it is give me old value not what i had change ready!!!For example in label value is 1 and when you press button edit in text box is 1 too but my goal is to be changed to 2 so in text box value is changed to 2 but after pressing of bot ton the value which is extract is 1???Pleas cloud you tell me some body why.Unfortunately the at the moment i am not in-front of my pc but let try the code.
string name;
name=((TextBox)(gvMain.Rows[e.EditIndex].Cells[1].Control[1])).Text;
And result is 1;
Please tell me why
Now the project on which i work it use net.3.5 can you explain me if there is some changes and why if i catch the text box the value is old one not the value which i already type on it.
Thanks in advance.
when i want to read something good just seat and type it
|
|
|
|
|
|
So far the control implementation by Infragistics looks to be the best control out there. Does anyone have a favorite that is not Infragistics? I've cruised through articles here and I need some that is all the way tuned out that I can style using CSS and such. I am doing a quick and dirty site for someone and they don't want to spend a lot of money and I don't want to reinvent the wheel for something that there are at least 3 decent ones I've run across.
Is there a scheduling control out there you like more than Infragistics and if so what is it?
John Cardinal I am pretty sure you have used Infragistics right? Have you used this control and do you have any comments?
modified on Saturday, January 05, 2008 12:18:00 AM
|
|
|
|
|
Scheduling... You mean like a datepicker control? ...Or something like an Outlook/Google Calendar appointment book?
|
|
|
|
|
Aha! You must be the one who moved me.
Umm... Google. A full blown appointment calendar and scheduling system for a medical office.
|
|
|
|
|
Not i. I don't get to move people. I'd just abuse it anyway...
And i'm afraid i don't have any good recommendations for an appointment calendar either.
|
|
|
|
|
Hi,
"I am doing a quick and dirty site for someone" - If you are willing to wind of the task in a cheaper way - use javascipt calender control which you can find at many places on the net and when the user selects a date get the date into a text field and the task on that date into another store them into db for future ref.,
-Ram.
|
|
|
|
|
Hi folks,
I got the following problem when i try to deploy my web site in IIS7 on Vista machine.(Developed in Visual Studio 2005 .Net 2.0).
HTTP Error 500.19 - Internal Server Error<br />
Description: The requested page cannot be accessed because the related configuration data for the page is invalid. <br />
<br />
Error Code: 0x80070021 <br />
<br />
Notification: BeginRequest <br />
<br />
Module: IIS Web Core <br />
<br />
Requested URL: http:
<br />
Physical Path: E:\TestWeb <br />
<br />
Logon User: Not yet determined <br />
<br />
Logon Method: Not yet determined <br />
<br />
Handler: Not yet determined <br />
<br />
Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". <br />
<br />
Config File: \\?\E:\TestWeb\web.config <br />
<br />
Config Source: 79: </modules><br />
80: <handlers><br />
81: <remove name="WebServiceHandlerFactory-Integrated"/>
If any one knows please reply me as soon as possible.
Advance Thanks,
friendly,
ranandbe
|
|
|
|
|
Requested URL: http://localhost:80/TestWeb
Physical Path: E:\TestWeb
Hello. The Requested URL cannot display your website because the files arent there. The files in the Physical Path: E:\TestWeb should be uploaded to the server, then the website will show. However, the IIS server must be running.
---------------------------
Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute.
Regards,
Hesbon Ongira
Nairobi, Kenya.
|
|
|
|
|
Hi Friends,
I need to get the selected text of a dropdownlist using javascript.I need to display it using alert function..How to do..? Pls help in this regard.
Regards,
Balaguru
|
|
|
|
|
<script type="text/javascript">
function go()
{
var myDropdown = document.getElementById('myDropdown');
var myValue = myDropdown.options[myDropdown.selectedIndex].value;
var myText = myDropdown.options[myDropdown.selectedIndex].innerHTML;
window.alert('Selected Value: ' + myValue + ', Selected Text: ' + myText);
}
</script>
<select id="myDropdown" onchange="go()">
<option value=''>- Select -</option>
<option value='Option1'>Option 1</option>
<option value="Option2">Option 2</option>
<option value="Option3">Option 3</option>
</select>
|
|
|
|