Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Setting Custom Paper Size (Read 5491 times)
asloan
YaBB Newbies
*
Offline



Posts: 35
Joined: Mar 6th, 2006
Setting Custom Paper Size
Dec 13th, 2006 at 6:31pm
Print Post  
Can you tell me the correct way to set the Papersize to a custom size?

We often generate and print diagrams that are 100X32 (inches) give or take.  I can't seem to set FlowChartX's papersize correctly to be able to print these.  I am setting the PaperSize to pszCustom and setting the PaperWidth and PaperLength to what the print setup dialog is returning but no luck.

I'f I'm printing to a standard Size, (A, B, C...F) it works fine, but if I select a custom size in the print setup, I can't seem to relay those dimensions to FCX.

By the way, I'm using VB6 and FCX 3.2.4.

Thanks,
Alan Sloan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting Custom Paper Size
Reply #1 - Dec 14th, 2006 at 5:42am
Print Post  
Have you converted the size to tenths of a millimeter? E.g. printing 32x100 inches should look like

fcx.PrintOptions.PaperSize = pszCustom
fcx.PrintOptions.PaperWidth = 32 * 254    ' 32 inches in tenths of millimeter
fcx.PrintOptions.PaperLength = 100 * 254  ' 100 inches in tenths of millimeter

Stoyan
  
Back to top
 
IP Logged
 
asloan
YaBB Newbies
*
Offline



Posts: 35
Joined: Mar 6th, 2006
Re: Setting Custom Paper Size
Reply #2 - Dec 14th, 2006 at 3:58pm
Print Post  
Yes I have converted the size.  Even if I hard-code the sizes such as:

fcx.PrintOptions.PaperWidth = 32 * 254
fcx.PrintOptions.PaperLength = 32 * 254

I get very unpredictable results.  I've created a new project thinking that maybe something in my existing code is throwing this off and I get the same results.  I even tried using the 4.x version of the control and still get the same results.  It would appear to me that the pszCustom just isn't working.

Using any valid printer size constant that the printer.papersize returns seems to work just fine, such as 26 = pszESheet(34x44).  But if I set the size to custom and the same size, it doesn't work.

Could it be some setting on the FCX control itself that is contradicting the print sizing?

Thanks,
Alan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting Custom Paper Size
Reply #3 - Dec 14th, 2006 at 5:22pm
Print Post  
Does that custom paper size work well when printing from other applications, e.g. Visio or Excel?

Stoyan
  
Back to top
 
IP Logged
 
asloan
YaBB Newbies
*
Offline



Posts: 35
Joined: Mar 6th, 2006
Re: Setting Custom Paper Size
Reply #4 - Dec 14th, 2006 at 5:28pm
Print Post  
Yes, both work fine.  I can see that the FcxCustomForm is being created by FCX with the correct dimensions, what FCX does with it from there, I don't know.

Alan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting Custom Paper Size
Reply #5 - Dec 14th, 2006 at 5:59pm
Print Post  
What are the flowchart's DocLeft/Top/Right/Bottom values?

Stoyan
  
Back to top
 
IP Logged
 
asloan
YaBB Newbies
*
Offline



Posts: 35
Joined: Mar 6th, 2006
Re: Setting Custom Paper Size
Reply #6 - Dec 14th, 2006 at 6:19pm
Print Post  
Right before this block of code

.PaperSize = pszCustom
.PaperLength = 32 * 254
.PaperWidth = 32 * 254

the doc position is:

Left=0
Top=0
Right=1179
Bottom=2675

Alan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting Custom Paper Size
Reply #7 - Dec 15th, 2006 at 8:26am
Print Post  
That works fine here. This file is the result from printing to PDF using 32x32 inches page size:
http://mindfusion.org/_temp/test.pdf.

Could you try printing to PDF and send me the file if there is anything wrong?

I will also send you a flowchart.dll that will create a log file with the values reported by the printer driver, so our developer can investigate this.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting Custom Paper Size
Reply #8 - Dec 15th, 2006 at 8:51am
Print Post  
This dll will create a logfile.txt in the application's current folder:
https://mindfusion.org/_temp/fcxplog.zip

Please use it to print to your printer and email me the log file.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint