BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sorry for OT

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Roby DP
Guest





PostPosted: Thu Jan 19, 2006 3:35 pm    Post subject: sorry for OT Reply with quote



but I know here are the best GURU,

perhaps someone can help with D2006 variants bug?

in delphi5 this code permit to customize the print page footer and header
of iwebbrowser2(OLE):

var
vaIn :OleVariantl;
vaOut :OleVariant;

begin
Header := '&w';
Footer := '[Pag. &p - &P]';
vaIn := Null;
vaOut :=Null;

try
SafeArrayCopy(PSafeArray(TVarData(VarArrayOf([Header,
Footer])).VArray), psa);

VarData(vaIn).VType := varArray or varByRef;

SafeArrayCopy(Psa, PSafeArray(TVarData(vaIn).VArray));

PrintBrowser.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, VaIn,
VaOut);

....

in D2006 except: variant conv not supported

Any hint?

Thanks :'(
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.