elhamdouni.dina
Member
hi, plz how can i extract years from a word file using code with blue prism
hi, plz how can i extract years from a word file using code with blue prism
thank you VJR , actually it works without using code....i used AA Spy mode .Hi elhamdouni.dina,
I don't think there is any direct way in the Word VBO to save the file to HTML.
However you can create a new Action page by making a copy of the existing 'Save As' page in the MS Word VBO.
Rename the page name and Code Stage to 'Save As - HTML' or to whatever you'd like.
Change the code stage to below:
Dim doc as Object = GetDocument(handle,documentname)
doc.SaveAs(Filename:=filename, FileFormat:= 8)
newname = doc.name
The file format of 8 is the numeric constant for HTML.
Can you elaborate the details of what you did for your original requirement of saving the doc to html so that it can be used for future reference.thank you VJR , actually it works without using code....i used AA Spy mode .
VJR, Have you tried using code?For some reason after I submit the above post, a space is automatically added after the percentage and before the opening bracket.
Do not add any space. Here is the image
View attachment 414
"%{TAB}"
VJR, Have you tried using code?
That's not what I meant. If you want to quote some code in your post and you don't want the forum to apply formatting automatically to it, use the insert menu and code or inline code (the insert menu is the "..." labelled menu in the WYSIWYG editor. (=What You See Is What You Get)Yes the code I have responded to elhamdouni.dina is the working one.
This is an inline code.
<?php
echo "This is an example PHP code, syntax highlight and everything.";
?>
Est-ce que quelqu'un sait comment puis-je utiliser ce code dans BlurPrism afin que je puisse convertir un fichier Word en fichier TXT.
<<< le code >>>
Dim wApp = Nouveau Word.Application
Dim wDoc = wApp.Documents.Open (nomFichier: = "fichier.doc", readonly = Vrai)
wDoc.SaveAs ("fichier.txt", Word.WdSaveFormat.wdFormatDOSText)
wApp.Quit ()
Dim doc en tant qu'objet = GetDocument (handle, documentname)
doc.SaveAs (Filename: = filename, FileFormat: = 2)
nouveau nom = doc.name [/ CODE]
La sortie après l'exécution de l'étape de code sera la suivante:
[ATTACH=full]550[/ATTACH][/CITATION]
thank youuuuuuuuuuuu