ruanlab123
asked on
Convert stdole.IFontDisp to font
Hi
I am busy with a report designer application in C# using the Crystal Reports design lybaries - CRAXDDRT.
I've created a font object : public Font objectFont and wants to assign the objectFont to a spesific reportfield font.
CRAXDDRT.TextObject textfield;
textfield = (CRAXDDRT.TextObject)Repor t.Sections [Section]. ReportObje cts[RepObj ];
objectFont = textfield.font;
But the following error occurs : Error 2 Cannot implicitly convert type 'stdole.IFontDisp' to 'System.Drawing.Font'
How can I convert a stdole.IFontDisp to System.Drawing.Font?
I am busy with a report designer application in C# using the Crystal Reports design lybaries - CRAXDDRT.
I've created a font object : public Font objectFont and wants to assign the objectFont to a spesific reportfield font.
CRAXDDRT.TextObject textfield;
textfield = (CRAXDDRT.TextObject)Repor
objectFont = textfield.font;
But the following error occurs : Error 2 Cannot implicitly convert type 'stdole.IFontDisp' to 'System.Drawing.Font'
How can I convert a stdole.IFontDisp to System.Drawing.Font?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER