Build XMLRPC request to Post to Word Press

2010-09-25 Thread Sivakatirswami
 I'm trying to translate a Ruby frame work for posting to Word press 
into a Revolution upload script.


I don't know what I'm doing, so this is a fishing expedition (smile) and 
tomorrow I will go study the Word Press API and see if it is better 
tackling this without Ruby code in the middle of the R & D.


the "listener" on the server is the /blog/myblog/xmlrpc.php

script that handles input.

The API in use by the ruby example we already have working on the server 
to post from a  web page on the same box via local host, is using the 
MetaWebLogAPI.


I think I have cornered the key parts of the script:

Ruby has this function:
---
require  xmlrpc/client

def newPost(content, publish)
  @client.call('metaWeblog.newPost', @blogid, @username,
  @password, content, publish)
end
where content is

content = {
  'title' => title,
  'description' => post
}

and publish is a  boolean string, either "true" or "false"

---

I'm assuming I can talk to this xmlrpc.php  remotely, assuming the log 
in details are here. The ruby library "client.rb"  which is required is 
over my head completely, but I'm assuming that the RevXMLRPC liberay 
should work, if I knew what I was doing, which I don't


I gave it this much of a "stab" and I will later keep plugging away in 
the dark if anyone has any ideas, let me know.


on mouseUp
  local tRequest
  put revXMLRPC_CreateRequest(field "Host",field "Port",field 
"Path",field "Protocol") into tRequest

  revXMLRPC_AddParam tRequest, "int", "1" # blog ide
  revXMLRPC_AddParam tRequest, "string", "user"
  revXMLRPC_AddParam tRequest, "string", "password"
  revXMLRPC_AddParam tRequest, "string", "metaWeblog.newPost" # I think 
the xmlrpc.php needs this...

  revXMLRPC_AddParam tRequest, "string", "Testing" # title of the post
  revXMLRPC_AddParam tRequest, "string", "Cool article" # 
description-article content
  revXMLRPC_AddParam tRequest, "string", "false" # send to drafts for 
now, don't publish.

  put revXMLRPC_Execute(tRequest) into  fld "result" # I get a number
  put tRequest into fld "result" # I would like to see what the request 
looks like but I don't get anything here...

end mouseUp

How do you get LiveCode to show you the full xml that has been built?  
That is being sent to the server?


Sivakatirswami

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Radio Buttons on the Windoze version

2010-09-25 Thread Joe Lewis Wilkins
As I surmised, Jaqi. Just another justification for not using Windows. Thanks.

Joe Wilkins

On Sep 25, 2010, at 9:17 PM, J. Landman Gay wrote:

> On 9/25/10 10:05 PM, Joe Lewis Wilkins wrote:
>> HMN! Doesn't work. Just changes the size of the rectangle; not the
>> size of the button itself.
> 
> As I understand it, the engine calls the OS to draw native controls, so 
> however the system does it, that's how they look in your stacks. In general, 
> that's a good thing. If the engine is doing its job, your stack radio buttons 
> should be the same size as they are anywhere else in XP.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Radio Buttons on the Windoze version

2010-09-25 Thread J. Landman Gay

On 9/25/10 10:05 PM, Joe Lewis Wilkins wrote:

HMN! Doesn't work. Just changes the size of the rectangle; not the
size of the button itself.


As I understand it, the engine calls the OS to draw native controls, so 
however the system does it, that's how they look in your stacks. In 
general, that's a good thing. If the engine is doing its job, your stack 
radio buttons should be the same size as they are anywhere else in XP.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Radio Buttons on the Windoze version

2010-09-25 Thread Joe Lewis Wilkins
HMN! Doesn't work. Just changes the size of the rectangle; not the size of the 
button itself.

Oh, well. Windows just sucks!

Joe Wilkins

On Sep 25, 2010, at 7:57 PM, Joe Lewis Wilkins wrote:

> Just dawned on me that I CAN set the size of the controls, but that means the 
> Mac version will be larger as well, unless I make two totally different 
> versions. Has anyone tried making the sizes conditional on the OS? How could 
> that work?
> 
> TIA,
> Joe Wilkins
> 
> On Sep 25, 2010, at 4:45 PM, Joe Lewis Wilkins wrote:
> 
>> Hi All,
>> I'm just completing an application and I find the Windoze version's Radio 
>> buttons are really tiny. Any chance there is a built-in option to increase 
>> their size? Size is fine for the Mac Version. I'm running it on WindowsXP 
>> under Fusion.
>> 
>> TIA,
>> 
>> Joe Wilkins

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Radio Buttons on the Windoze version

2010-09-25 Thread Joe Lewis Wilkins
Just dawned on me that I CAN set the size of the controls, but that means the 
Mac version will be larger as well, unless I make two totally different 
versions. Has anyone tried making the sizes conditional on the OS? How could 
that work?

TIA,
Joe Wilkins

On Sep 25, 2010, at 4:45 PM, Joe Lewis Wilkins wrote:

> Hi All,
> I'm just completing an application and I find the Windoze version's Radio 
> buttons are really tiny. Any chance there is a built-in option to increase 
> their size? Size is fine for the Mac Version. I'm running it on WindowsXP 
> under Fusion.
> 
> TIA,
> 
> Joe Wilkins
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Radio Buttons on the Windoze version

2010-09-25 Thread Joe Lewis Wilkins
Hi All,
I'm just completing an application and I find the Windoze version's Radio 
buttons are really tiny. Any chance there is a built-in option to increase 
their size? Size is fine for the Mac Version. I'm running it on WindowsXP under 
Fusion.

TIA,

Joe Wilkins


On Sep 25, 2010, at 4:21 PM, Marty Knapp wrote:

> Anybody experiencing extreme slowness with On-Rev? I'm on Thor, I believe, 
> and things are just crawling along . . .
> 
> Thanks,
> Marty Knapp
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Slow On-Rev?

2010-09-25 Thread Marty Knapp
 Anybody experiencing extreme slowness with On-Rev? I'm on Thor, I 
believe, and things are just crawling along . . .


Thanks,
Marty Knapp
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: (DataGrid) one datagrid can't find the stack when its name is changed

2010-09-25 Thread Andre.Bisseret


Le 25 sept. 10 à 22:00, zryip theSlug a écrit :

On Sat, Sep 25, 2010 at 9:29 PM, Andre.Bisseret > wrote:

Bonjour,
I have an app. with a main stack which is use to keep one' accounts.
13 cards, on for each month and the last of the year'recapitulation.
On each cards, one data grid, which has been installed with:
---
copy group "DataGrid" of group "Templates" of stack  
"revDataGridLibrary" to

this card
-
Worked as expected up to now.

Now, I want to be able to create new stacks (for each years)
Up to now my stack was named, say "annual accounts".

I just tried to replace the current name with "annual accounts 2010".

Then, all works normally, (the datagrids of the 12 months are working
normally)
EXCEPT the data grid on the year card; when I go to the year card,  
I got the

following answer message:
-
An error has occured in behavior for the
column template;
Chunk: can't find stack
with "OK" or "Edit Script"
-
The same when I click on the button which calculates the data for  
the year
and populates the datagrid: the handler is interrupted and I got  
several

successive such messages.

What am I missing here?
I would like to be able, for example, to simply clone the stack  
2010 (or a

model stack) and only change the name to "annual accounts 2011"

Thanks a lot in advance for any help

Best regards from Grenoble

André


Bonjour André



Have you a default column behavior for this dg?
You can check with your copy of DGH by selecting the dg in the year
card, then open the Behaviors / Templates topic of DGH. If the default
column behavior field is filled, when you click on the 3 dots button,
you will obtain an error message from DGH.

A behavior points to the long id of a btn, so the name of the stack
which contain the behavior btn is store in the behavior. When you
change the name of a stack the link with the behavior is broken.


Bonsoir TheSlug,

Yes I have a default column behavior
Oouuups! indeed, I was completely forgetting  that the name of the  
stack was hidden there!!
So I have to reset the behavior of the dataGrid when a new stack is  
created for a new year


Magnifique your DGH! a very useful tool indeed!

Thanks a lot for your quick and helpful answer; much appreciated ;-))

Have a good night

André




Regards,
--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc







 ___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: (DataGrid) one datagrid can't find the stack when its name is changed

2010-09-25 Thread zryip theSlug
On Sat, Sep 25, 2010 at 9:29 PM, Andre.Bisseret  wrote:
> Bonjour,
> I have an app. with a main stack which is use to keep one' accounts.
> 13 cards, on for each month and the last of the year'recapitulation.
> On each cards, one data grid, which has been installed with:
> ---
> copy group "DataGrid" of group "Templates" of stack "revDataGridLibrary" to
> this card
> -
> Worked as expected up to now.
>
> Now, I want to be able to create new stacks (for each years)
> Up to now my stack was named, say "annual accounts".
>
> I just tried to replace the current name with "annual accounts 2010".
>
> Then, all works normally, (the datagrids of the 12 months are working
> normally)
> EXCEPT the data grid on the year card; when I go to the year card, I got the
> following answer message:
> -
> An error has occured in behavior for the
> column template;
> Chunk: can't find stack
> with "OK" or "Edit Script"
> -
> The same when I click on the button which calculates the data for the year
> and populates the datagrid: the handler is interrupted and I got several
> successive such messages.
>
> What am I missing here?
> I would like to be able, for example, to simply clone the stack 2010 (or a
> model stack) and only change the name to "annual accounts 2011"
>
> Thanks a lot in advance for any help
>
> Best regards from Grenoble
>
> André

Bonjour André,

Have you a default column behavior for this dg?
You can check with your copy of DGH by selecting the dg in the year
card, then open the Behaviors / Templates topic of DGH. If the default
column behavior field is filled, when you click on the 3 dots button,
you will obtain an error message from DGH.

A behavior points to the long id of a btn, so the name of the stack
which contain the behavior btn is store in the behavior. When you
change the name of a stack the link with the behavior is broken.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


sqlite: foreign keys

2010-09-25 Thread David Bovill
A quick geeky question: does anyone know if foreign key support has been
turned on for the recent sqlite driver -
http://www.hwaci.com/sw/sqlite/foreignkeys.html?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


(DataGrid) one datagrid can't find the stack when its name is changed

2010-09-25 Thread Andre.Bisseret

Bonjour,
I have an app. with a main stack which is use to keep one' accounts.
13 cards, on for each month and the last of the year'recapitulation.
On each cards, one data grid, which has been installed with:
---
copy group "DataGrid" of group "Templates" of stack  
"revDataGridLibrary" to this card

-
Worked as expected up to now.

Now, I want to be able to create new stacks (for each years)
Up to now my stack was named, say "annual accounts".

I just tried to replace the current name with "annual accounts 2010".

Then, all works normally, (the datagrids of the 12 months are working  
normally)
EXCEPT the data grid on the year card; when I go to the year card, I  
got the following answer message:

-
An error has occured in behavior for the
column template;
Chunk: can't find stack
with "OK" or "Edit Script"
-
The same when I click on the button which calculates the data for the  
year and populates the datagrid: the handler is interrupted and I got  
several successive such messages.


What am I missing here?
I would like to be able, for example, to simply clone the stack 2010  
(or a model stack) and only change the name to "annual accounts 2011"


Thanks a lot in advance for any help

Best regards from Grenoble

André



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open printing to PDF bug?

2010-09-25 Thread Dar Scott
Bug reports should be crisp and address a particular bug.  One can  
add details to a existing bug report or suggest changes in parts.   
Additional reports for the same bug should not be made.  Often  
though, it is only after the fact that it is clear that two bugs are  
the same.  Fortunately, it is possible for the bug wranglers to mark  
a bug as a duplicate of another.


I think there are changes coming in the reporting of bugs, so that  
may not exactly apply.


Dar


On Sep 25, 2010, at 11:51 AM, William de Smet wrote:


Hi there,
I will report it in the next coming days but I think you need to do  
it aswell Dar.

The more the better!

Greetings,

William

-
Verstuurd vanaf mijn iPhone!

Op 25 sep. 2010 om 19:32 heeft Dar Scott  het  
volgende geschreven:


I have seen the page cutoff problem with landscape (but not the  
other concerns), so if William doesn't report it, I'm willing to  
report that much.  -- Dar


On Sep 25, 2010, at 11:06 AM, J. Landman Gay wrote:


On 9/25/10 6:59 AM, William de Smet wrote:

Hi everyone,

Thanks for the replies.
Indeed it seems that Printmargins and PrintScale affect the  
cuttoff of

text and images.
Thats a pity because I want to increase text and images by  
setting the

PrintScale to to 1.1.
It looks as if Printscale doesn't work with images and with  
'printing

to PDF'  and printPaperOrientation 'Landscape'.

And I was so happy when they announced 'printing to PDF'!!!


Bug report it, there may be something RR can do.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open printing to PDF bug?

2010-09-25 Thread William de Smet
Hi there,
I will report it in the next coming days but I think you need to do it aswell 
Dar.
The more the better!

Greetings,

William

-
Verstuurd vanaf mijn iPhone!

Op 25 sep. 2010 om 19:32 heeft Dar Scott  het volgende 
geschreven:

> I have seen the page cutoff problem with landscape (but not the other 
> concerns), so if William doesn't report it, I'm willing to report that much.  
> -- Dar
> 
> On Sep 25, 2010, at 11:06 AM, J. Landman Gay wrote:
> 
>> On 9/25/10 6:59 AM, William de Smet wrote:
>>> Hi everyone,
>>> 
>>> Thanks for the replies.
>>> Indeed it seems that Printmargins and PrintScale affect the cuttoff of
>>> text and images.
>>> Thats a pity because I want to increase text and images by setting the
>>> PrintScale to to 1.1.
>>> It looks as if Printscale doesn't work with images and with 'printing
>>> to PDF'  and printPaperOrientation 'Landscape'.
>>> 
>>> And I was so happy when they announced 'printing to PDF'!!!
>> 
>> Bug report it, there may be something RR can do.
>> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Scripter's Scrapbook: Where do the Files Go?

2010-09-25 Thread FlexibleLearning
Recently added to the Scripter's Scrapbook on-line reference library:

http://www.flexiblelearning.com/ssbk/support/WhereDoTheFilesGo.pdf

Following changes to the way plugins are treated in LiveCode 4.5, this
document explains the three install alternatives for using your Scrapbook as
a plugin, as a stack file, and with a standAlone application program.

I hope it will be helpful.

Hugh Senior
FLCo

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open printing to PDF bug?

2010-09-25 Thread Dar Scott
I have seen the page cutoff problem with landscape (but not the other  
concerns), so if William doesn't report it, I'm willing to report  
that much.  -- Dar


On Sep 25, 2010, at 11:06 AM, J. Landman Gay wrote:


On 9/25/10 6:59 AM, William de Smet wrote:

Hi everyone,

Thanks for the replies.
Indeed it seems that Printmargins and PrintScale affect the  
cuttoff of

text and images.
Thats a pity because I want to increase text and images by setting  
the

PrintScale to to 1.1.
It looks as if Printscale doesn't work with images and with 'printing
to PDF'  and printPaperOrientation 'Landscape'.

And I was so happy when they announced 'printing to PDF'!!!


Bug report it, there may be something RR can do.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open printing to PDF bug?

2010-09-25 Thread J. Landman Gay

On 9/25/10 6:59 AM, William de Smet wrote:

Hi everyone,

Thanks for the replies.
Indeed it seems that Printmargins and PrintScale affect the cuttoff of
text and images.
Thats a pity because I want to increase text and images by setting the
PrintScale to to 1.1.
It looks as if Printscale doesn't work with images and with 'printing
to PDF'  and printPaperOrientation 'Landscape'.

And I was so happy when they announced 'printing to PDF'!!!


Bug report it, there may be something RR can do.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open printing to PDF bug?

2010-09-25 Thread Dar Scott
A workaround might be to take a picture of the region, put that on  
another card, rotate that, and print from that card.  -- Dar


On Sep 25, 2010, at 5:59 AM, William de Smet wrote:


Hi everyone,

Thanks for the replies.
Indeed it seems that Printmargins and PrintScale affect the cuttoff of
text and images.
Thats a pity because I want to increase text and images by setting the
PrintScale to to 1.1.
It looks as if Printscale doesn't work with images and with 'printing
to PDF'  and printPaperOrientation 'Landscape'.

And I was so happy when they announced 'printing to PDF'!!!

greetings,

William



2010/9/24 JosepM :


This work for me, without change the exact size of the elements,  
but l lost

about 2 cm at the bottom of the page.
I need to force the stack size and move to some position that I  
can edit
later, so if I use it in my laptop the stack is resized and when I  
print the
PDF only show the visible area of the stack. The idea is make this  
stack

invisible.

Put the margin to 0 left about 2 cm at top and at bottom, left and  
right are

about 1cm...

on mouseUp
  set the location of this stack to 600,600
  set the width of this stack to 595
  set the height of this stack to 842

  set the printPaperSize to "595,842"
  put "595,842" into thePaperSize

  put "0" into theMargin

  -- get the page area:
  set the printMargins to theMargin,theMargin,theMargin,theMargin
  -- put theMargin,theMargin, item 1 of thePaperSize - theMargin,  
item 2 of

thePaperSize - theMargin into destinationRect
  -- print into that rectangle:
  open printing to pdf "/Users/joss/Desktop/card_test.pdf"
  print this card --into destinationRect
  close printing

end mouseUp

Salut,
Josep
--
View this message in context: http://runtime-revolution. 
278305.n4.nabble.com/Open-printing-to-PDF-bug-tp2550663p2552864.html

Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] The IDE Extension Plugin is on the road

2010-09-25 Thread zryip theSlug
On Sat, Sep 25, 2010 at 2:48 AM, stephen barncard
 wrote:
> thanks, mr. slug this is very useful.
>

You're welcome, Stephen

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open printing to PDF bug?

2010-09-25 Thread William de Smet
Hi everyone,

Thanks for the replies.
Indeed it seems that Printmargins and PrintScale affect the cuttoff of
text and images.
Thats a pity because I want to increase text and images by setting the
PrintScale to to 1.1.
It looks as if Printscale doesn't work with images and with 'printing
to PDF'  and printPaperOrientation 'Landscape'.

And I was so happy when they announced 'printing to PDF'!!!

greetings,

William



2010/9/24 JosepM :
>
> This work for me, without change the exact size of the elements, but l lost
> about 2 cm at the bottom of the page.
> I need to force the stack size and move to some position that I can edit
> later, so if I use it in my laptop the stack is resized and when I print the
> PDF only show the visible area of the stack. The idea is make this stack
> invisible.
>
> Put the margin to 0 left about 2 cm at top and at bottom, left and right are
> about 1cm...
>
> on mouseUp
>   set the location of this stack to 600,600
>   set the width of this stack to 595
>   set the height of this stack to 842
>
>   set the printPaperSize to "595,842"
>   put "595,842" into thePaperSize
>
>   put "0" into theMargin
>
>   -- get the page area:
>   set the printMargins to theMargin,theMargin,theMargin,theMargin
>   -- put theMargin,theMargin, item 1 of thePaperSize - theMargin, item 2 of
> thePaperSize - theMargin into destinationRect
>   -- print into that rectangle:
>   open printing to pdf "/Users/joss/Desktop/card_test.pdf"
>   print this card --into destinationRect
>   close printing
>
> end mouseUp
>
> Salut,
> Josep
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Open-printing-to-PDF-bug-tp2550663p2552864.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution