[#Form: Sales Color] On : Form Accept : Yes : CALL : SaveAsPDF [Function : SaveAsPDF] Variable : PrintFileName : String 500 : SET : PrintFileName : $$String:"C:\" + $$$String:$PartyLedgerName 600 : SET : SVExportFormat : $$SysNameDF 800 : SET : VCHPrintJurisdiction : "QUEPEM" 900 : SET : SVPrintMode : "Neat Mode" 960 : SET : SVGetPaperSizeFromPS : Yes 970 : SET : SVPrintOrientation : "Portrait" 980 : SET : SVPreview : YES 1110 : SET : SVBrowserHeight : 210 ;297 ;210 ;##DSPPageHeight 1120 : SET : SVBrowserWidth : 148 ;210 ;148 ;##DSPPageWidth 1200 : SET : SASpace : 0.25 1300 : SET : SASpaceLeft : 0.50 1400 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat 1500 : SET : SVOpenFileAfterExport : Yes 1600 : EXPORT REPORT :.: TRUE 1800 : Return [#Report: Printed Invoice] Print Set : SVPrintCopy : $$SysName:NotApplicable Print SET : SVPaperSize : "A5" [#Form: Printed Invoice] Full Height : No [#Line: EXPINV Column1] local : Field : EXPINV SLNoTitle : Width : 5% Page local : Field : EXPINV SLNoTitle : Lines : 0 [#Line: EXPINV Column2] local : Field : EXPINV SLNoTitle : Width : 5% Page [#Line: EXPINV AccDetails] Local : Field : EXPINV SLNoTitle : Width : 5% Page [#Line: EXPINV InvDetails] Local : Field : EXPINV SLNo : Width : 5% Page [#Line: EXPINV Totals] local : Field : EXPINV SLNoTitle : Width : 5% Page [#Part: VCH GST AmtInWords] Space Top : 0.10 [#Part: EXPINV TopLeft] Height : If @@IsSales And ##SVBrowserHeight=210 Then 35% Else 50% Page [#Part: EXPINV Company] Height : If @@IsSales And ##SVBrowserHeight=210 Then 15% Else 10% Page [#Part: EXPINV TopRight] Height : If @@IsSales And ##SVBrowserHeight=210 Then 35% Else 50% Page [#Part: EXPINV InvDecl] Height : 25 mms [#Line: VCH GST AmtInWords] Local : Field : Simple Field : Style : Tiny [#Field: EXPINV GSTInWords] Style : Tiny Bold [#Line: EXPINV AmtInWords] Space Bottom : 0.25 Space Top : 0.15 [#Field: EXPINV AmtInWords] Style : Tiny Bold [#Field: Simple Declaration] Lines : 0 [#Part: EXPINV MainSignOff] Local : Style : Default : Height : @@LargeSize [#Part: EXPINV InvDeclHeight] Height : 25 mms
[Function : SaveAsPDF] Variable : PrintFileName : String 500 : SET : PrintFileName : $$String:"C:\" + $$$String:$PartyLedgerName 600 : SET : SVExportFormat : $$SysNameDF 800 : SET : VCHPrintJurisdiction : "QUEPEM" 900 : SET : SVPrintMode : "Neat Mode" 960 : SET : SVGetPaperSizeFromPS : Yes 970 : SET : SVPrintOrientation : "Portrait" 980 : SET : SVPreview : YES 1110 : SET : SVBrowserHeight : 210 ;297 ;210 ;##DSPPageHeight 1120 : SET : SVBrowserWidth : 148 ;210 ;148 ;##DSPPageWidth 1200 : SET : SASpace : 0.25 1300 : SET : SASpaceLeft : 0.50 1400 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat 1500 : SET : SVOpenFileAfterExport : Yes 1600 : EXPORT REPORT :.: TRUE 1800 : Return [#Report: Printed Invoice] Print Set : SVPrintCopy : $$SysName:NotApplicable Print SET : SVPaperSize : "A5" Upto here...all is okay......... problem is with the width and height settings you have done in various fields. Do a proper experimentation. As for A5 size, I cannot check from my end, as there is server/firewall restrictions on print/Copy etc. nor can I change any printer settings either.
I have not gone deep into the PRINT Report, but from my experience, if you want a proper one, then you will have to re-design the whole thing. Just simply specifying height will not work, coz it works like this way.... there are Parts within Parts and so on......... you need to check all the way to the parent PART for space limitation. So when you specify the PART's height as X% then it will adjust accordingly as per the parent PART......... If a Parent Part is 30% height.... and there are 3 parts within........ and you specify the 3rd Part as 50% .... means the 4rd Part will take 50% of 30% ...i.e. 15% and the remaining 15% is available for Part1 and Part2....... Hope above explanation helps in your module. Until then you can do R&D by adjusting....but at same time you need to check out the Parent Part also.