DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 6
bobpeak
314 Views, 5 Replies

Black and white

Is there any way within Express viewer to force the drawing to black and white like there was in Volo View Express. We are having problems printing our old legacy DWF's as they where created in colour. We can obviously get round the problem on new files by creating them in mono but have lots of old files that are causing problems when printing. If the answer is NO then is there anyway that I can convert the old files without re-creating them from Autocad?

Thanks.
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: bobpeak


Do you want to do this with the
UI or the API?

If you are using the UI you can click the “Force Geometry
to Black” check box in the print dialog.



size=2>
 

"bobpeak" <
href="mailto:bobp@hubbard.co.uk">bobp@hubbard.co.uk
> wrote in message
href="news:f165b12.-1@WebX.maYIadrTaRb">news:f165b12.-1@WebX.maYIadrTaRb
...


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">Is
there any way within Express viewer to force the drawing to black and white
like there was in Volo View Express. We are having problems printing our old
legacy DWF's as they where created in colour. We can obviously get round the
problem on new files by creating them in mono but have lots of old files that
are causing problems when printing. If the answer is NO then is there anyway
that I can convert the old files without re-creating them from Autocad?

Thanks.

Message 3 of 6
bobpeak
in reply to: bobpeak

Thank you. Yes, my question was primarily with the UI and somehow I just missed it. Ultimately I do wish to do it in the API within VB . . . I have found the bWhiteBackground parameter but this would suggest it will only change White geometry to Black not all geometry , is this correct?
Message 4 of 6
Anonymous
in reply to: bobpeak


From VB you can use the method
SetBlackAndWhite() before printing and then use RestoreColors() to restore the
colors for viewing again.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Thank
you. Yes, my question was primarily with the UI and somehow I just missed it.
Ultimately I do wish to do it in the API within VB . . . I have found the
bWhiteBackground parameter but this would suggest it will only change White
geometry to Black not all geometry , is this correct?
Message 5 of 6
bmorphy
in reply to: bobpeak

I have a similar question. I would just like to know how to view the document in black and white. I found the printing works well, but I would like to email the drawing in black and white. Is this possible?
Message 6 of 6
Anonymous
in reply to: bobpeak

The best you can do is create an html page with a button or link that
allows the user to view the dwf file in black and white. If the recipient's
e-mail reader supports html then you could make the dwf show up in the body of
the e-mail. Otherwise the recipient will need to download and open the html
attachment. I coded up an html sample that does
this.

<html>
   
<head>
        <script
language="javascript">

           
function
blackWhite()
           
{
             
AdView.Viewer.WaitForPageLoaded();
             
AdView.Viewer.SetBlackAndWhite();

             
// Force a
Redraw
             
AdView.Viewer.View =
AdView.Viewer.View;
           
}
           

       
</script>
    </head>
   
<body>
        <input
type="button" value="Black and White",
onclick='blackWhite()'>
       
<object id="AdView" height="300" width="450"
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF">
         
<param name="Src"
value="dwfFile.dwf">
       
</object>
    </body>
</html>


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
have a similar question. I would just like to know how to view the document in
black and white. I found the printing works well, but I would like to email
the drawing in black and white. Is this possible?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report