problem in export in pdf

Discussion in 'Free Source Codes' started by Rohit001, Apr 10, 2020.

    
  1. Rohit001

    Rohit001 Member


    [#Form : Sales Color]
    Delete : Print
    Add : Print : STC GST INVOICE OTS
    [Report :STC GST INVOICE OTS]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : STC GST INVOICE OTS
    [Form:STC GST INVOICE OTS]
    Space Left: 0.50 Inch
    Space Bottom: 0.50 Inch
    Space Right: 0.50 Inch
    Space Top:0.50 Inch
    Part: OTS Opening Page Break

    [Part: OTS Opening Page Break]
    Part: OTS Invoice Title,OTS CMP Details
    Vertical: Yes

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INVOICE TITLE;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [Part:OTS Invoice Title]
    Line:OTS Invoice Title,TIT

    [Line:OTS Invoice Title]
    Field: Simple Field
    Right Field:Name Field
    Local: Field: Simple Field: Set as: "GST No : " +" "+ @@CMPGSTaxNumber
    Local: Field: Simple Field: Style: Large Bold
    ; Local: Field: Simple Field: Space Left: 10
    Local: Field: Simple Field: Full Width: Yes
    Local: Field: Name Field: Set as:If @@GetCopyNum = 1 Then "ORIGINAL COPY" Else +
    If @@GetCopyNum = 2 Then $$LocaleString:"DUPLICATE FOR TRANSPOTER" Else +
    If @@GetCopyNum = 3 Then $$LocaleString:"TRIPLICATE FOR SUPPLIER " Else +
    If @@GetCopyNum = 4 Then $$LocaleString:"EXTRA COPY" Else $$LocaleString:"EXTRA COPY"



    [Line:TIT]
    Field: Simple Field
    ;Right Field:Name Field
    Local: Field: Simple Field: Set as: ##ReportTitle
    Local: Field: Simple Field: Style: Large Bold
    Local: Field: Simple Field: Space Left: 38
    Local: Field: Simple Field: Full Width: Yes
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;COMPANY DETAILS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [Part:OTS CMP Details]
    ; Space Top:0.5
    Part: OTS CMP Name Details

    [Part: OTS CMP Name Details]
    Line: OTS CMP Name
    [Line: OTS CMP Name]
    Field: Name Field
    Local: Field: Name Field: Set as: @@CmpMailName
    Local: Field: Name Field: Style:CMP
    Local: Field: Name Field: Full Width: Yes
    Local: Field: NAME Field: Alignment:Center
    [Style:CMP]
    Height:23
    Bold:Yes
     


  2. ONKAR

    ONKAR Active Member


    @Rohit001 try this one

    [#Form: Sales Color]
    On : Form Accept : $$InAlterMode : CALL : SALES Export Report
    On : Form Accept : $$InCreateMode : CALL : SALES Export Report
    ;; Function Definition begins
    [Function: SALES Export Report]
    20: SET : SVExportFormat : $$SysName:pDF
    30: Set : SVPrintFileName : $$String:$Vouchertypename+"_"+$$String:$vouchernumber
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVOpenFileAfterExport : Yes
    60: EXPORT REPORT : . : TRUE
    80a : SET: SVExportFormat : $$IsSysNameEqual:English:#DSPExportLanguage
     


  3. harsh sachdeva

    harsh sachdeva New Member


    Onkar ji the code is not working
     


Share This Page