|
|
how to Convert Word 2007 doc into PDF while saving using C#.net in Windows Application
object format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF;
_wordapp.ActiveDocument.SaveAs(ref saveAs, ref format, ref _missing, ref _missing, ref _missing,
ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing);
Here I am getting error as Command fail
Any immediate help would be great..very urgent
Thanks,
|
|
|
|
|
I found following link useful for the same.
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/f8989c05-d04a-4b4a-be0f-fc0055691de7[^]
When Word saves a document to any file format other than its native *.doc format, it uses a file converter. This is true for RTF, for HTML, or for saving as plain text (just as examples). The difference between these file formats and PDF is that their file converters are installed by default when Office is installed. The PDF file converter is not part of the Office package. Originally, it was supposed to be, but Adobe threatened a lawsuit.
Therefore, the PDF file converter must be downloaded and installed separately before you can use it. It doesn't matter whether you're automating Office or working as an end-user.
Also, You need to install the word converter. If you load Word, click 'SaveAs' and see an option to save as XPS then you're ok. For Word 2007 go to this link...
http://www.microsoft.com/downloads/thankyou.aspx?familyId=4d951911-3e7e-4ae6-b059-a2e79ed87041&displayLang=en[^]
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Thanks Jinal
But after conversion and saving in particular folder i am not able to replace the text and it saves the same content in different files generated.
|
|
|
|
|
int a = Convert.ToInt32(txtQuantityOrdered.Text);
int b = Convert.ToInt32(txtQuantityReceived.Text);
if (b > a)
{
}
I have two Text Boxes and I want to compare that if txtQuantityReceived is greater than txtQuantityOrdered then an error message must show. But as you know that in Windows Forms there are MessageBoxes but no such thing in the ASP.NET, so how must I tackle my problem? I just want to display a small message box or something like that, to show that "Quantity Entered Is Invalid."
Also one more thing to tell, i.e., I tried to use the validation control called the CompareValidator, but as you know that this control is used only for comparing the equalities, but not the inequalities. So I failed to to solve up my problem.
My issue here is regarding the inequality, i.e, if txtQuantityReceived is greater than txtQuantityOrdered then an error message must be displayed.
What can be the possible solution for it?
|
|
|
|
|
You can use javascript for the same.
Do your validation in javascript by passing value and
give alert box for displaying error message.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
When i set the textbox value to "" but it still take the what ever value set by server side previously
|
|
|
|
|
How you are setting the value? Is that textbox disabled?
|
|
|
|
|
Can you please elaborate more on your question ?
or provide the code for the same, so that it is
better to understand what you are missing ?
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Could the page be reloading after you set the text to ""? If so the value may be being reset to the original value if that was happening during the pageload event.
|
|
|
|
|
How grouping in rdlc done?please say the steps for grouping in rdlc in web application(c#)
|
|
|
|
|
Have a look at what I found by little googling[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
i want to get text box value in my javascript function but my textbox visible=flase so i am not getting value in my function.
Help ME
|
|
|
|
|
Instead of setting Visible property set Style = "display:none;"
Arun Jacob
My Technical Blog : Code.NET
modified on Tuesday, July 13, 2010 6:37 AM
|
|
|
|
|
|
Javascript will not identify hidden controls.
You need to do following to achieve the same.
1. Keep textbox visible.
2. Define following css class.
<style type="text/css">
.hidden
{
display:none;
}
</style>
3. Assign your textbox the class as follow.
<asp:TextBox ID="txtName" runat="server" CssClass="hidden"></asp:TextBox>
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
for your attention when you set Visible="false" in server side it will not render in client side. if you want to check take View Page Source
Raju.M
|
|
|
|
|
Experts,
I have created one windows application and deployed it in some 500 machines in my company. The problem is, the applicaiton is updated weekely atlest. I cannot reinstall the .exe once again in all the 500 machines. Any solution for this.........
|
|
|
|
|
Please do not repost the question in different forum.
You question here[^] is already get attention and answered.
If you have not gone through the guidelines for posting question then
please go through with it here[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
I searched through the forum but couldn't find anything that solved my problem.
I have visual studio 2008 installed with .NET 3.5 SP1. In an asp.net application I am trying to write an Inline Javascript function.
<script language ="javascript" type ="text/javascript" >
document.write('Hello world');
</script>
the intellisens under the script tag doesn't seem to work. Like when I type document . nothing comes..
am I missing something or visual studion doesn't support intellisense for JavaScript ?
Thanks
|
|
|
|
|
Look what I have found by little googling[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi,
thanks for the google link but I couldn't find anything useful there ? can you point me to more appropriate link or something ?
|
|
|
|
|
You need to do two things.
1. First you need to verify that whether javascript intellisense is enable in your Visual Studio IDE
or not??
To do that just go to
Tools->Options->Text Editor->JScript->General section
and see it's "Statement Completion" Block.
Verify that options "Auto list members" and "Parameter information" are checked.
2. Second is prefer to put your javascript in separate ".js" files. Sometimes it will take time to show
you intellisense, when you are using javascript as inline code.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|