Text to HTML

Hi,

I would like to convert texts to html file.

I tried below and I can see the html file but not the contents/texts in it.


Thanks

@AjitNayak

As you are tying to texts to html file, you need to give the nodes of the Html too

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

</head>

<body>

    

</body>

</html> 

Also add variables to replace with content inside the body
Hope this helps

Thanks

Thank you @ksrinu070184.
I tried your suggestion and still does not work.

data.txt (253 Bytes)

Thanks

@AjitNayak

Instead of Append line, Use Write Text file activity, with file name as htm

Hope this works

Thanks

@ksrinu070184.

Still it does not work.

Thanks

@AjitNayak

In Create File give Path correctly, Instead of C: give path of Desktop correctly

and try

Hope this helps

Thanks

@ksrinu070184

Pls see attached xaml.

Thanksdate.xaml (5.0 KB) data.txt (253 Bytes)

Thanks

Check as below

I got the HTML file and able to see

image

Mark as solution if this helps

Thanks

@ksrinu070184

I think the extension “.html” is working, not “.htm”.

Thanks.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.