R
Richard Steele
Can anyone help me
I am developing an application runs on a PC (client) only. For graphical
reasons it was decided that the content would be displayed in a Browser that
is embedded in a Windows Forms application (VS net 2003) c#
I have a Windows Form that uses a webbrowser (AxWebBrowser) )to display
html derived from internal classes that builds data from a database. The
HTML displays correctly. The HTML is built at runtime and the images are
stored locally on the c: drive
The issue i am having is displaying a background JPG using a body background
tag.
for example
<body background='C:\DOCUME~1\user\LOCALS~1\Temp\SalesBackGround.jpg'>
i have also tried
<body
background='file:///C:\DOCUME~1\user\LOCALS~1\Temp\SalesBackGround.jpg;
' leftmargin='0' marginheight='0' marginwidth='0'");
i have also tried copying the image to the executable's path
<body background='SalesBackGround.jpg'leftmargin='0' marginheight='0'
marginwidth='0'
Eveything after this statement displays corectly but the body background
if i copy the HTML after runtime to a new file (say in frontpage) and
preview the html it works perfectly
Can anybody help me
Thank You
Richard
I am developing an application runs on a PC (client) only. For graphical
reasons it was decided that the content would be displayed in a Browser that
is embedded in a Windows Forms application (VS net 2003) c#
I have a Windows Form that uses a webbrowser (AxWebBrowser) )to display
html derived from internal classes that builds data from a database. The
HTML displays correctly. The HTML is built at runtime and the images are
stored locally on the c: drive
The issue i am having is displaying a background JPG using a body background
tag.
for example
<body background='C:\DOCUME~1\user\LOCALS~1\Temp\SalesBackGround.jpg'>
i have also tried
<body
background='file:///C:\DOCUME~1\user\LOCALS~1\Temp\SalesBackGround.jpg;
' leftmargin='0' marginheight='0' marginwidth='0'");
i have also tried copying the image to the executable's path
<body background='SalesBackGround.jpg'leftmargin='0' marginheight='0'
marginwidth='0'
Eveything after this statement displays corectly but the body background
if i copy the HTML after runtime to a new file (say in frontpage) and
preview the html it works perfectly
Can anybody help me
Thank You
Richard