CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Mon Jan 29, 2024 10:17 am

It's just a report.
In my notebook I have 125% in the screen options in Scale and layout "chang the size of text, apps ant other items."
If I run this little app, when I click on the button the dialog become more little and it moves.
The question is: Pdfcreator problem or something in fivewin?

Many thanks

Marco


Code: Select all  Expand view
#include "fivewin.ch"
FUNCTION MAIN
LOCAL oPdfCreator
LOCAL oDlg
LOCAL oButton

DEFINE DIALOG oDlg

@ 1 , 1 BUTTON oButton OF oDlg ACTION  ( oPdfCreator := CreateObject( "PDFCreator.PDFCreatorObj" ) , MsgInfo( oPdfcreator ) )

ACTIVATE DIALOG oDlg CENTER


RETURN NIL

 
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Mon Jan 29, 2024 1:34 pm

Change this and report back if the problem persist, please:

Code: Select all  Expand view
@ 1 , 1 BUTTON oButton OF oDlg ACTION MsgInfo( "Test" )
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Mon Jan 29, 2024 2:08 pm

Emag,
in this version the program is ok!
King regards
Marco
#include "fivewin.ch"
FUNCTION MAIN
LOCAL oPdfCreator
LOCAL oDlg
LOCAL oButton

DEFINE DIALOG oDlg

// @ 1 , 1 BUTTON oButton OF oDlg ACTION ( oPdfCreator := CreateObject( "PDFCreator.PDFCreatorObj" ) , MsgInfo( oPdfcreator ) )
@ 1 , 1 BUTTON oButton OF oDlg ACTION MsgInfo( "Test" )

ACTIVATE DIALOG oDlg CENTER


RETURN NIL
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Mon Jan 29, 2024 3:59 pm

Ok, now try this and report back:

Code: Select all  Expand view
@ 1 , 1 BUTTON oButton OF oDlg ACTION  ( oExcel := CreateObject( "Excel.Application" ) , MsgInfo( oExcel ) )
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Tue Jan 30, 2024 8:19 am

It works fine
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Tue Jan 30, 2024 9:07 am

Ok, so the problem is only with PDFCreator. Which version of PDFCreator are you using?
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Tue Jan 30, 2024 9:12 am

Free v5.1.2.5
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Tue Jan 30, 2024 9:18 am

Can you tried with the latest version (5.2.0), please? Just to exclude something wrong in the version you are using.
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Tue Jan 30, 2024 9:24 am

Ok, I tried your sample and confirm the problem. I have no clue about the cause, though... :-(
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Tue Jan 30, 2024 9:42 am

Using 5.2.0 I have the sema problem.
probably Pdfcreator needsa 100% scale to worl correctly
anyway thanks for your attention Enrico
8)
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Tue Jan 30, 2024 10:58 am

Please try with PDFCreator.JobQueue instead of PDFCreator.PDFCreatorObj.
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Tue Jan 30, 2024 11:34 am

as usual :roll:
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby Enrico Maria Giordano » Tue Jan 30, 2024 11:42 am

Do you mean that you get the same problem with PDFCreator.JobQueue?
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: CreateObject( "PDFCreator.PDFCreatorObj" Scale and Layout

Postby MarcoBoschi » Tue Jan 30, 2024 4:09 pm

Yes I do
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 48 guests