Hi All,
I have sucessfully generated a word document using ASP from our web site and now I need some advice on the following:
1 - Addding Header & Footer to the .doc
Have anyone done this in the asp successfully? I am currently using the following at the style area:
@page Section1
{
margin:30.0pt 35.0pt 30.0pt 35.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-header:url("header.htm");
mso-footer:url("header.htm");
mso-paper-source:0;
mso-gutter-direction:rtl
}
However, the .doc file complaints that the file, header.htm, cannot be found. I understand that it is trying to find it in the local machine. I have also tried the complete web path for the header.htm. Still no luck.
2 - Converting the .doc to .pdf
I am using the ADODB.Stream to force the file to be downloaded. Now, instead of writing the 800 some lines of code over again, I would like to know if there are any components that will convert the .doc to .pdf. The ASP file is database driven and it's ideal to have a component to convert the .doc file to pdf before ADODB.Stream is called. Even better is to have the ability to add the header & footer when generating the .pdf file.
Any ideas or suggestions are highly appreciated.
Thanks,
Beer
I have sucessfully generated a word document using ASP from our web site and now I need some advice on the following:
1 - Addding Header & Footer to the .doc
Have anyone done this in the asp successfully? I am currently using the following at the style area:
@page Section1
{
margin:30.0pt 35.0pt 30.0pt 35.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-header:url("header.htm");
mso-footer:url("header.htm");
mso-paper-source:0;
mso-gutter-direction:rtl
}
However, the .doc file complaints that the file, header.htm, cannot be found. I understand that it is trying to find it in the local machine. I have also tried the complete web path for the header.htm. Still no luck.
2 - Converting the .doc to .pdf
I am using the ADODB.Stream to force the file to be downloaded. Now, instead of writing the 800 some lines of code over again, I would like to know if there are any components that will convert the .doc to .pdf. The ASP file is database driven and it's ideal to have a component to convert the .doc file to pdf before ADODB.Stream is called. Even better is to have the ability to add the header & footer when generating the .pdf file.
Any ideas or suggestions are highly appreciated.
Thanks,
Beer