Print Page | Close Window

PDF Viewer background

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3028
Printed Date: 29 Apr 24 at 3:12PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF Viewer background
Posted By: Marco
Subject: PDF Viewer background
Date Posted: 11 Dec 14 at 9:33AM
Hi,

how can I to change the background color of the PDF Viewer in VB.NET?

Thanks,
regards



Replies:
Posted By: mLipok
Date Posted: 11 Dec 14 at 12:27PM
You can not change it yet.
But this can be very useful feature.
So I made FeatureRequest to Debenu Team





-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Marco
Date Posted: 11 Dec 14 at 12:45PM
Ok,
thanks!


Posted By: AndrewC
Date Posted: 11 Dec 14 at 1:08PM
Marco,

Are you just wanting to change the background colour outside of the PDF page in the Viewer control ?

Andrew.
 



Posted By: mLipok
Date Posted: 11 Dec 14 at 2:24PM
In the meantime (while waiting for a response from Marco)
For me, it would be useful ability to change the background that appears before you open the PDF file.

btw.
Some time ago, I reported the need for functionality (FeatureRequest) to close an opened file in order to return to the initial state.

EDIT:
As an example the situation:
program that uses Viewer is based on pastel colors blue and green.

Why then the Viewer must be gray ?


-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Marco
Date Posted: 12 Dec 14 at 9:22AM
Originally posted by AndrewC AndrewC wrote:

Marco,

<span style="line-height: 1.4;">Are you just wanting to change the background colour outside of the PDF page in the Viewer control ?</span>

<span style="line-height: 1.4;">Andrew.</span>
<span style="line-height: 1.4;"> </span>




Yes, thanks


Posted By: Paul
Date Posted: 12 Dec 14 at 9:59AM
Hi Marco,

In the latest version you can easily change the background color of the Viewer control. It is in the Properties list: BackgroundColor.

You can also change it with this simple sample C# code:

axDPVActiveX1.BackgroundColor = Color.Red;
axDPVActiveX1.Refresh();


Posted By: Marco
Date Posted: 12 Dec 14 at 10:07AM
Using VB.NET, I've:

AxDPVActiveX1.DQPLSetFormFieldBackgroundColor

but not:

AxDPVActiveX1.BackgroundColor


Posted By: mLipok
Date Posted: 12 Dec 14 at 11:19AM
hmm..
I just get answer to my request...

It looks like in last update was added such feature.

from Debenu PDF Viewer SDK Quick Start Guide.pdf

OLE_COLOR BackgroundColor

This property is used to change the background of document view area. It accepts standard
COLORREF format 0x00RRGGBB.


btw.
check for updates here:
http://www.debenu.com/products/development/debenu-pdf-viewer-sdk/updates/



EDIT:

sample code:

axDPVActiveX1.BackgroundColor = Color.Red;
axDPVActiveX1.Refresh()



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Marco
Date Posted: 12 Dec 14 at 11:28AM
It doesn't work..


Posted By: mLipok
Date Posted: 12 Dec 14 at 11:33AM
do you use the latest version ?

Debenu PDF Viewer SDK 11.12.0.5


edit:
Works for me.


-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Marco
Date Posted: 12 Dec 14 at 11:41AM
yes, in vb.net..and I've not the axDPVActiveX1.BackgroundColor property..


Posted By: mLipok
Date Posted: 12 Dec 14 at 11:47AM
I'am not vb.net experts (I never used it).
So you must wait for answer from other forum members.

Cheers,
mLipok



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Marco
Date Posted: 16 Dec 14 at 10:43AM
What about the upgrade of PDF Viewer with the new features and the bug fix?

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk