I search that subject about during 3 mounth and I already watch and read almost every document on internet at the and ı saw your video Thank you so so much
I face this error.. kindly help me to fix it. Error 1 'object' does not contain a definition for 'Value' and no extension method 'Value' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) C:\Users\Rinku Kaushik\Documents\Visual Studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs 45 38 WindowsFormsApplication1
i face this error .. please help me to fix this... Error 1 'object' does not contain a definition for 'Value' and no extension method 'Value' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) C:\Users\Rinku Kaushik\Documents\Visual Studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs 45 38 WindowsFormsApplication1
Hi sir, the video is really well explained, but I've got a question, basically I've managed to create a report with the code provided by you, but now I've got another part of the same report in another form page, just to simplify for the user, how do i "link" them both together in one word file report?
HI! Great thanks for this video, it helped me a lot and was my support to generate a word document :) One question: can we do modifications in the header or footer of the word template document?
From 2018, I will still ask my question just incase someone the comments finds question. First thank for the code. Limitation I have is the save as function. Is there a way I can modify the code so that I can be saving with new name every time in situations that I want to create multiple word documents. E.g. Document 1, Document 2, Document 3 etc? thanks in advance.
Great video. Two questions: (1) Why call everything an object e.g. filename? Why not call it a string? Also, could you use the @"" to create a literal string without the escape characters?
Hola, perdón si hablo español, solo tengo una pregunta, quiero guardar información en archivos de Word mediante C# y guardarla, para que después mi programa lea esa información y la muestre..... espero tu respuesta gracias.
Hello, sorry if I speak Spanish, I only have one question, I want to save information in Word files by C # and save it, so that after my program read that information and show it ..... I wait for your answer thanks.
@@why-fu5979 everything has worked, suddenly it just broke, even if I download the code from scratch again, it still not working… Could there be an reference or something i’m missing suddenly?
I used this tutorial to help me create (N) number of files for shareholder reports. I am noticing that it runs very slow. It takes 3 min to create only 26 files. The datatable populates almost instantly with results of the stored procedure but the actual creating of each file takes a lot of time. Is there any way to improve speed? There could be instances where we need to create 1000 customized reports. Thank you for this tutorial and thank you in advance for your help with my question.
I tried at different PCs' and their words from 1) LTSC Professional Plus 2021 2) Word 2007 tried both docx and doc format 4 times, the error is same at wordApp.Selection.Find.Execute() function System.Runtime.InteropServices.COMException: Type mismatch 0x80020005 (DISP_E_TYPEMISMATCH) any solution or opinion that may help me?
@@Madsycode Wow man, thank you. You're still replying after 4 years. Anyway, I couldn't find a decent solution for that and used a nuget called "Spire". It was enough for me.
Hey there, I am trying to run this on a contract document that I didn't make, but am trying to make a program that generates contracts based on this document as a template. For some reason it's not replacing everything, among the things that refuse to change are the title and subtitle on the cover page, and some lines in a footer which is inside of a shape or a textbox of some sort. Why are these instances refusing to change with the search replace?
@@Madsycode I want to explain through on your work. I want to prepare 3 form. In the firs form, it will have only the name textbox, in the second form, only the surname textbox and in the 3rd form only the date of birth textbox. In the 3rd form, there is also a generate button like yo did. when I click on generate button, it will run the template your certiface document completely. Thank you so much.
After I generated the .docx it wont let me see anything, I can open it but its just blank, not plain worksheet but plain word application nothing inside. Any suggestions?
Hi can you please assist with the error. Severity Code Description Project File Line Suppression State Error CS1061 'CriarNovo' does not contain a definition for 'FindAndReplace' and no extension method 'FindAndReplace' accepting a first argument of type '
I got a warning saying "Could not resolve this reference. Could not locate the assembly "Bunifu_UI_v1.52". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.'' and "The referenced component 'Bunifu_UI_v1.52' could not be found." and when i run it go to else loop and pop up say "File not Found!" do anyone know why?
@@Madsycode It worked after I deleted the print button thank you. your video are very helpful. and Just a friendly feedback try to sound little more enthusiastic. with such great content, you channel will shine on RU-vid
Amazing Video, thank you so much. it is worth noticing however than this will work with .Net framework. I tried it in .Net Core and it didn't work since the package is not compatible with this version of .Net
Super Video! Wie kann ich den Button alle ersetzen nutzen? Ich habe einen Suchtext im Dokument und einen im Header. Alles was ich bisher im Netz gefunden habe, funktioniert nicht. Es wird immer nur der Text im Dokument geändert. Wenn ich im Word Dokument das manuell anwende, werden aber alle Suchtexte geändert. Theoretisch sollte es ja mit der Funktion hier gehen: docs.microsoft.com/de-de/visualstudio/vsto/how-to-programmatically-search-for-and-replace-text-in-documents?view=vs-2019
Awesome stuff. Keep it up! Thank you so much. Can you make a tutorial on how to set continuous Line Numbers in an existing word document using Microsoft.Office.Interop.Word ? I am in search of this kindly help me in this regard I'll be very thankful to you.