|
View:
New views
17 Messages
—
Rating Filter:
Alert me
|
|
|
Printing of the plugin areaHi all,
Windows i have a problem with the event eAE_PrintBand On this event i call PA_GetUpdateHDC (the value returned is NOT null). I print the area with "print form". The problem is: The print preview shows nothing and if i print the page on a printer, the area is maybe 50x50 pixel :-( The 4D Plugin API is very poor. There are no descriptions of the events. Any advices? BTW: On Mac it works very well. 4D v11.2hf2 -- Grüße/Regards, [heubach-media] | Christian Sakowski Christian.sakowski@... iChat/AIM: SakowskiF ICQ: 4thDimension (267537916) Tel: 040/52 10 59-23 -- Besuchen Sie heubach media auf folgender Messe: Buchmesse Frankfurt, 15.-19. Oktober 2008, Frankfurt Messe - Halle: 4.2 www.smartCatalog.de - einfach und schnell Kataloge produzieren www.secPaper.de - sicher und einfach Zeitschriften, Bücher und Informationen digital vertreiben www.projektis.de - professionelles CRM, ERP & Projektmanagement-System www.book-ranking.com - schnelle Internet Verkaufskontrolle www.address-webservice.com - einfach schnell Adressen aktualisieren www.hmplugins.com - 4D Plugins - erweitern Sie Ihr Business heubach media Papenreye 22 | 22453 Hamburg Tel: 040 / 52 10 59 - 0 | Fax: -99 Mail: info@... Home: www.heubach-media.de Geschäftsführer|CEO: Matthias Heubach Mieten Sie Ihr IT-Equipment unter: http://www.it-verleih.de/ ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Reading the STR# resource of a plugin.RSR file?All,
Does anyone have a piece of example code on how to read the STR# resource of my plugin's '.RSR' file? I need to access the plugin's API. I know it's possible with 4D commands, but I've been unable to accomplish this with methods from the 4D plugin API. Best regards, Patrick de Boer. ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaOn 25 aug 2008, at 12:50, Christian Sakowski wrote: > Windows i have a problem with the event > > eAE_PrintBand > > On this event i call PA_GetUpdateHDC (the value returned is NOT > null). I > print the area with "print form". The problem is: The print preview > shows > nothing and if i print the page on a printer, the area is maybe > 50x50 pixel > :-( > > The 4D Plugin API is very poor. There are no descriptions of the > events. Any > advices? Are you using the eAE_GetPrintSize event? You need this to report to 4D the required height to print. For example: case eAE_GetPrintSize : area = (CPDFViewer*) PA_GetAreaReference( params ); event->fMessage = area->getPrintSize(); // Return the height of the plugin area break; Also make sure the section markers on your 4D form are set correctly. HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Reading the STR# resource of a plugin.RSR file?On 25 aug 2008, at 14:26, Patrick de Boer wrote: > Does anyone have a piece of example code on how to read the STR# > resource of my plugin's '.RSR' file? I need to access the plugin's > API. You have to use GetIndString() in Altura: Str255 pString; GetIndString( pString, resID, index ); Or you can use the built-in 4D command in combination with PA_ExecuteFunction(). HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
RE: Reading the STR# resource of a plugin.RSR file?Hey Rob,
Thanks, that's what I had initially, but I was trying to move away from Altura :) Any reason why it doesn't work in 4d with 'Get indexed string' ? I thought all the resource files are linked ? Regards, Patrick. -----Original Message----- From: 4D-Plugins@... [mailto:4D-Plugins@...] On Behalf Of Rob Laveaux Sent: maandag 25 augustus 2008 19:55 To: 4D Plugin Talk Subject: Re: Reading the STR# resource of a plugin.RSR file? On 25 aug 2008, at 14:26, Patrick de Boer wrote: > Does anyone have a piece of example code on how to read the STR# > resource of my plugin's '.RSR' file? I need to access the plugin's > API. You have to use GetIndString() in Altura: Str255 pString; GetIndString( pString, resID, index ); Or you can use the built-in 4D command in combination with PA_ExecuteFunction(). HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Reading the STR# resource of a plugin.RSR file?On 26 aug 2008, at 11:01, Patrick de Boer wrote: > Thanks, that's what I had initially, but I was trying to move away > from Altura :) Of course you can reduce its usage as much as possible. But in my opinion you can't remove it completely if you want to get things done. Hopefully in a future version all these things will be stored in XML files or something like that. > Any reason why it doesn't work in 4d with 'Get indexed string' ? > I thought all the resource files are linked ? I don't know. Maybe because at the application level the plugin's resource file is not in the resource chain? Or if you're testing with 4D v11, you should be aware that PA_ExecuteFunction returns a Unicode string. This is a bug that I reported recently. HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
RE: Reading the STR# resource of a plugin.RSR file?Mmm, I'm guessing the plugin resource is not in the chain then, because I just tested it in 4D with 'get indexed string', not even by calling it with PA_ExecuteFunction.
I've also noticed that PA_ExecuteFunction behaves slightly differently from the 2004 version, in 2004 it always returned real's and now it returns integers/longints correctly (e.g. where you would expect an integer as result value). -----Original Message----- From: 4D-Plugins@... [mailto:4D-Plugins@...] On Behalf Of Rob Laveaux Sent: dinsdag 26 augustus 2008 11:48 To: 4D Plugin Talk Subject: Re: Reading the STR# resource of a plugin.RSR file? On 26 aug 2008, at 11:01, Patrick de Boer wrote: > Thanks, that's what I had initially, but I was trying to move away > from Altura :) Of course you can reduce its usage as much as possible. But in my opinion you can't remove it completely if you want to get things done. Hopefully in a future version all these things will be stored in XML files or something like that. > Any reason why it doesn't work in 4d with 'Get indexed string' ? > I thought all the resource files are linked ? I don't know. Maybe because at the application level the plugin's resource file is not in the resource chain? Or if you're testing with 4D v11, you should be aware that PA_ExecuteFunction returns a Unicode string. This is a bug that I reported recently. HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Reading the STR# resource of a plugin.RSR file?>> Any reason why it doesn't work in 4d with 'Get indexed string' ?
>> I thought all the resource files are linked ? > > I don't know. Maybe because at the application level the plugin's > resource file is not in the resource chain? The plugin is only inserted in the chain when it is called by 4D. Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Reading the STR# resource of a plugin.RSR file?> Or you can use the built-in 4D command in combination with
> PA_ExecuteFunction(). If you are using v11, PA_ExecuteFunction is old school. Use PA_ExecuteCommandByID instead. Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaYes, i set the height of the area in eAE_GetPrintSize.
But this is not required, because on mac it works. It's the same demo database - on mac it works; on windows not. But why i have to tell the size to 4D? 4D knows the size, where the area is on the form!? -- Grüße/Regards, [heubach-media] | Christian Sakowski Christian.sakowski@... iChat/AIM: SakowskiF ICQ: 4thDimension (267537916) Tel: 040/52 10 59-23 -- Besuchen Sie heubach media auf folgender Messe: Buchmesse Frankfurt, 15.-19. Oktober 2008, Frankfurt Messe - Halle: 4.2 www.smartCatalog.de - einfach und schnell Kataloge produzieren www.secPaper.de - sicher und einfach Zeitschriften, Bücher und Informationen digital vertreiben www.projektis.de - professionelles CRM, ERP & Projektmanagement-System www.book-ranking.com - schnelle Internet Verkaufskontrolle www.address-webservice.com - einfach schnell Adressen aktualisieren www.hmplugins.com - 4D Plugins - erweitern Sie Ihr Business heubach media Papenreye 22 | 22453 Hamburg Tel: 040 / 52 10 59 - 0 | Fax: -99 Mail: info@... Home: www.heubach-media.de Geschäftsführer|CEO: Matthias Heubach Mieten Sie Ihr IT-Equipment unter: http://www.it-verleih.de/ > Von: Rob Laveaux <rob.laveaux@...> > Antworten an: 4D Plugin Talk <4D-Plugins@...> > Datum: Mon, 25 Aug 2008 19:52:38 +0200 > An: 4D Plugin Talk <4D-Plugins@...> > Betreff: Re: Printing of the plugin area > > > On 25 aug 2008, at 12:50, Christian Sakowski wrote: > >> Windows i have a problem with the event >> >> eAE_PrintBand >> >> On this event i call PA_GetUpdateHDC (the value returned is NOT >> null). I >> print the area with "print form". The problem is: The print preview >> shows >> nothing and if i print the page on a printer, the area is maybe >> 50x50 pixel >> :-( >> >> The 4D Plugin API is very poor. There are no descriptions of the >> events. Any >> advices? > > Are you using the eAE_GetPrintSize event? You need this to report to > 4D the required height to print. > > For example: > > case eAE_GetPrintSize : > area = (CPDFViewer*) PA_GetAreaReference( params ); > event->fMessage = area->getPrintSize(); // Return the height of the > plugin area > break; > > Also make sure the section markers on your 4D form are set correctly. > > HTH, > > - Rob Laveaux > > -------------------------------------------------------- > Pluggers Software > Bleriotlaan 62 > 2497 BM Den Haag > The Netherlands > > Email: rob.laveaux@... > Website: http://www.pluggers.nl > > -------------------------------------------------------- > > > > ********************************************************************** > 4D Plugins hosted by 4D, Inc. http://www.4D.com/ > > > Did you know? The 4D Partner Program now gives you > access to Hotfix releases as soon as they are available! > To learn more, go to http://www.4D.com/support/partner.html > > To Unsubscribe: mailto:4D-Plugins-off@... > *********************************************************************** > > ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaOn 27 aug 2008, at 09:28, Christian Sakowski wrote: > Yes, i set the height of the area in eAE_GetPrintSize. > > But this is not required, because on mac it works. It's the same demo > database - on mac it works; on windows not. I don't know whether it is required. What I do know is that I set it and I don't have any printing problems. > But why i have to tell the size to 4D? 4D knows the size, where the > area is > on the form!? Because 4D allows the plugin area to print with variable height. Similar to the way text fields can have a variable print height. - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
PA_SetPackedRecordHi All,
Does anyone use PA_GetPackedRecord(..), PA_SetPackedRecord(..) ? I've noticed in 4D v11.2 that PA_SetPackedRecord(..)creates a new record instead of overwriting the current record. Overwriting the current record is the behavior you would expect according to the documentation. Regards, Patrick de Boer. ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaHi Rob,
for what is the selector eAE_TestPrintSize? I do have currently printing problems on Windows. Now i use PA_GetWindowsPrintingDC to get the printing device but my output is a picture of ca. 25% of the original :-( Why is that not documentated? -- Grüße/Regards, [heubach-media] | Christian Sakowski Christian.sakowski@... iChat/AIM: SakowskiF ICQ: 4thDimension (267537916) Tel: 040/52 10 59-23 Am 27.08.2008 um 11:21 schrieb Rob Laveaux: > > On 27 aug 2008, at 09:28, Christian Sakowski wrote: > >> Yes, i set the height of the area in eAE_GetPrintSize. >> >> But this is not required, because on mac it works. It's the same demo >> database - on mac it works; on windows not. > > I don't know whether it is required. What I do know is that I set it > and I don't have any printing problems. > >> But why i have to tell the size to 4D? 4D knows the size, where the >> area is >> on the form!? > > Because 4D allows the plugin area to print with variable height. > Similar to the way text fields can have a variable print height. > > - Rob Laveaux > > -------------------------------------------------------- > Pluggers Software > Bleriotlaan 62 > 2497 BM Den Haag > The Netherlands > > Email: rob.laveaux@... > Website: http://www.pluggers.nl > > -------------------------------------------------------- > > > > ********************************************************************** > 4D Plugins hosted by 4D, Inc. http://www.4D.com/ > Did you know? The 4D Partner Program now gives you access to > Hotfix releases as soon as they are available! > To learn more, go to http://www.4D.com/support/partner.html > > To Unsubscribe: mailto:4D-Plugins-off@... > *********************************************************************** > > ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaOn 6 mei 2009, at 13:38, Christian Sakowski wrote: > for what is the selector eAE_TestPrintSize? If I remember correctly, it is used to indicate whether you want to print the area with a variable frame or not. According to my archive you have to pass the value 104 in the fMessage field to indicate that you want to use a variable frame. > I do have currently printing problems on Windows. Now i use > PA_GetWindowsPrintingDC to get the printing device but my output is > a picture of ca. 25% of the original :-( Do you mean the output is drawn at a scale of 0.25? If so then I'd suggest to test the resolution of the device context and check whether you need to scale the output for printing. See the function GetDeviceCaps. HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin area> Do you mean the output is drawn at a scale of 0.25? If so then I'd
> suggest to test the resolution of the device context and check > whether you need to scale the output for printing. See the function > GetDeviceCaps. Do you need to scale the output? I think Canvas can be print with print form. Do you scale anything? Do you draw with ALTURA? I do not. -- Grüße/Regards, [heubach-media] | Christian Sakowski Christian.sakowski@... iChat/AIM: SakowskiF ICQ: 4thDimension (267537916) Tel: 040/52 10 59-23 Am 07.05.2009 um 17:00 schrieb Rob Laveaux: > > On 6 mei 2009, at 13:38, Christian Sakowski wrote: > >> for what is the selector eAE_TestPrintSize? > > If I remember correctly, it is used to indicate whether you want to > print the area with a variable frame or not. According to my archive > you have to pass the value 104 in the fMessage field to indicate > that you want to use a variable frame. > >> I do have currently printing problems on Windows. Now i use >> PA_GetWindowsPrintingDC to get the printing device but my output is >> a picture of ca. 25% of the original :-( > > Do you mean the output is drawn at a scale of 0.25? If so then I'd > suggest to test the resolution of the device context and check > whether you need to scale the output for printing. See the function > GetDeviceCaps. > > HTH, > > - Rob Laveaux > > -------------------------------------------------------- > Pluggers Software > Bleriotlaan 62 > 2497 BM Den Haag > The Netherlands > > Email: rob.laveaux@... > Website: http://www.pluggers.nl > > -------------------------------------------------------- > > > > ********************************************************************** > 4D Plugins hosted by 4D, Inc. http://www.4D.com/ > > Did you know? The 4D Partner Program now gives you access to > Hotfix releases as soon as they are available! > To learn more, go to http://www.4D.com/support/partner.html > > To Unsubscribe: mailto:4D-Plugins-off@... > *********************************************************************** > > ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaOn 7 mei 2009, at 17:08, Christian Sakowski wrote: > Do you need to scale the output? I think Canvas can be print with > print form. Do you scale anything? Do you draw with ALTURA? I do not. The 1.x version uses Altura on Windows. Using that version I don't have to do any scaling. I'm working on the next version which will use GDI+ on Windows, but printing is not yet implemented. So I can not tell yet. - Rob Laveaux -------------------------------------------------------- Pluggers Software Bleriotlaan 62 2497 BM Den Haag The Netherlands Email: rob.laveaux@... Website: http://www.pluggers.nl -------------------------------------------------------- ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
|
|
Re: Printing of the plugin areaI currently use native GDI/GDI+, so maybe it's the different!
I have to write a sample plugin; so maybe i can send it to you and/or 4D france. -- Grüße/Regards, [heubach-media] | Christian Sakowski Christian.sakowski@... iChat/AIM: SakowskiF ICQ: 4thDimension (267537916) Tel: 040/52 10 59-23 Am 07.05.2009 um 21:45 schrieb Rob Laveaux: > > On 7 mei 2009, at 17:08, Christian Sakowski wrote: > >> Do you need to scale the output? I think Canvas can be print with >> print form. Do you scale anything? Do you draw with ALTURA? I do not. > > The 1.x version uses Altura on Windows. Using that version I don't > have to do any scaling. > > I'm working on the next version which will use GDI+ on Windows, but > printing is not yet implemented. So I can not tell yet. > > - Rob Laveaux > > -------------------------------------------------------- > Pluggers Software > Bleriotlaan 62 > 2497 BM Den Haag > The Netherlands > > Email: rob.laveaux@... > Website: http://www.pluggers.nl > > -------------------------------------------------------- > > > ********************************************************************** > 4D Plugins hosted by 4D, Inc. http://www.4D.com/ > > Did you know? The 4D Partner Program now gives you access to > Hotfix releases as soon as they are available! > To learn more, go to http://www.4D.com/support/partner.html > > To Unsubscribe: mailto:4D-Plugins-off@... > *********************************************************************** > > ********************************************************************** 4D Plugins hosted by 4D, Inc. http://www.4D.com/ Did you know? The 4D Partner Program now gives you access to Hotfix releases as soon as they are available! To learn more, go to http://www.4D.com/support/partner.html To Unsubscribe: mailto:4D-Plugins-off@... *********************************************************************** |
| Free embeddable forum powered by Nabble | Forum Help |