Print Page | Close Window

SetFormFieldColor error

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
Printed Date: 17 Sep 21 at 2:38PM
Software Version: Web Wiz Forums 11.01 -

Topic: SetFormFieldColor error
Posted By: Gemici
Subject: SetFormFieldColor error
Date Posted: 05 Jul 21 at 8:27AM
Hi all,

I'm trying to set the color of the text with the "DPLSetFormFieldColor" function. Here is my code:

DPLSetFormFieldColor: function (InstanceID: Integer; Index: Integer; Red: Double; Green: Double; Blue: Double): Integer cdecl;

DPLSetFormFieldColor: = GetFuncAddress ('DPLSetFormFieldColor');

But when I call it, I get an error:
Result := DPLSetFormFieldColor (libID, FormFields [aFormIdx] .FormID, aRed, aGreen, aBlue);

Any one can help me on this? Thanks in advance!

Posted By: tfrost
Date Posted: 05 Jul 21 at 5:52PM
What error did you get?  A compile error, or a zero result or an exception when you ran the program?

The second parameter for this function is supposed to be "The index of the form field to work with".  So it seems strange that you are passing a field named FormID.

Posted By: Gemici
Date Posted: 06 Jul 21 at 6:53AM
I get an exception: External exception E06D7363 when i ran the code

I have one text field in the PDF and have also tried the following, but still get the exception:

Result: = DPLSetFormFieldColor (libID, 1, 0.7, 0.7, 0.7);

Posted By: Ingo
Date Posted: 06 Jul 21 at 11:23AM
Hi Gemici,

exception E06D7363 has nothing to do with QuickPDF itself.
E06D7363 is a microsoft C++ exception.
Seems that a file is locked or not free yet.
Perhaps access rights are missing...

Cheers and welcome here,


Posted By: Gemici
Date Posted: 07 Jul 21 at 7:09AM

the file is not locked and it is also free. Access rights are also available because other functions work for example: Result:=DPLSetFormFieldTextSize (libID, 1,20);

Only the DPLSetFormFieldColor function does not work

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 -
Copyright ©2001-2014 Web Wiz Ltd. -