Question

k3.kunnath on Sat, 05 Sep 2015 09:33:50


I am developing a software in VB.net 2008 and CR 9.22,  Printer (Epson Lx-310).

I am using a pre printed roll paper for billing, 

the paper ejects more than the actual print size.

Kindly help me (Urgent).

KK.




Sponsored



Replies

tommytwotrain on Sat, 05 Sep 2015 14:05:16


Show us the code you are using that does not work.

What is the size of the paper? Does it have perforations so you tear it off the roll at a certain size? What is that size? How are you setting up the paper for the print document now? Show the code.

Mr. Monkeyboy on Sat, 05 Sep 2015 21:33:02


I can't find anything about CR 9.22 on the internet or in this .PDF SPECIFICATIONS Epson LX-310.

Plus paper sizes for tractor feeds can differ in width and perforation location on height.

Please explain what CR 9.22 means. And what pre-printed roll paper means. And what "the paper ejects more than the actual print size" means.

Plus I don't know what .Net Framework VB.Net 2008 would be. Is that .Net Framework 2.0? What version of Visual Basic or Visual Studio are you using?


La vida loca

k3.kunnath on Mon, 07 Sep 2015 15:58:50


Sir, I am not an expert in .net,    I am using .Net Framework 3.5,

CR 9.22 is Crystal Reports 9.2,

Pre-printed roll paper means - the form feed paper which is already printed, used for billing.

the paper size is 15 cm in width and 9 cm in height. while printing from vb.net the paper ejects more than the paper size.

how to control ejecting.

pls help me sir.


k3.kunnath on Mon, 07 Sep 2015 16:09:55


the paper size is 15 cm in width and 9 cm in height.   yes there is a perforation. 

I am using Crystal Report viewer to print.

Private Sub frmReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If mrpttype = "saleBill" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptSaleBill.rpt")
        End If

        If mrpttype = "salesReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptSalesReport.rpt")
        End If

        If mrpttype = "stockReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptStock.rpt")
        End If

        If mrpttype = "purcReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptPurchase.rpt")
        End If

        If mrpttype = "purcReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptItemWiseSales.rpt")
        End If

        If mrpttype = "randdbetween" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptRDbet.rpt")
        End If

        If mrpttype = "daybook" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\dbkrpt.rpt")
        End If
        crv.RefreshReport()
        crv.Show()
    End Sub

 

The parameters are passed from the corresponding forms.

Pls help me sir.

KK.

tommytwotrain on Mon, 07 Sep 2015 16:20:16


the paper size is 15 cm in width and 9 cm in height.   yes there is a perforation. 

I am using Crystal Report viewer to print.

Private Sub frmReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If mrpttype = "saleBill" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptSaleBill.rpt")
        End If

        If mrpttype = "salesReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptSalesReport.rpt")
        End If

        If mrpttype = "stockReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptStock.rpt")
        End If

        If mrpttype = "purcReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptPurchase.rpt")
        End If

        If mrpttype = "purcReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptItemWiseSales.rpt")
        End If

        If mrpttype = "randdbetween" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptRDbet.rpt")
        End If

        If mrpttype = "daybook" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\dbkrpt.rpt")
        End If
        crv.RefreshReport()
        crv.Show()
    End Sub

 

The parameters are passed from the corresponding forms.

Pls help me sir.

KK.

I am not familiar with CR.

How does the paper size get set? Does the user set it or do you?


PS I mean I don't see any code setting the paper size? Do you need to do that or does CR handle it or do you depend on the user to set it for the printer?

Mr. Monkeyboy on Mon, 07 Sep 2015 16:48:34


the paper size is 15 cm in width and 9 cm in height.   yes there is a perforation. 

I am using Crystal Report viewer to print.

Private Sub frmReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If mrpttype = "saleBill" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptSaleBill.rpt")
        End If

        If mrpttype = "salesReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptSalesReport.rpt")
        End If

        If mrpttype = "stockReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptStock.rpt")
        End If

        If mrpttype = "purcReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptPurchase.rpt")
        End If

        If mrpttype = "purcReport" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptItemWiseSales.rpt")
        End If

        If mrpttype = "randdbetween" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\rptRDbet.rpt")
        End If

        If mrpttype = "daybook" Then
            crv.ReportSource = ("K:\Farm-Menonpara\boFarm\Reports\dbkrpt.rpt")
        End If
        crv.RefreshReport()
        crv.Show()
    End Sub

 

The parameters are passed from the corresponding forms.

Pls help me sir.

KK.

I don't know anything about Crystal Reports or a Crystal Report viewer which I would guess would be a control provided for Crystal Reports. Since Crystal Reports is third party then if the Crystal Report viewer is what is used to print a Crystal Report you would need to ask for assistance in one of the SAP forums for Crystal Reports I would imagine.

Also if you post a question in one of SAP's support forums you will need to post it in a Forum for the version of Crystal Reports you are using and the Version of Visual Studio and year of that version of Visual Studio you are using from what I've seen.

You will probably need to find some forum or something under "Services & Support" at the following link SAP Community Network for getting assistance, maybe in SAP Help Portal and Features, as you don't seem to be using System.Drawing.Printing Namespace to print with so that is all I can suggest.

Although for all I know there could be a printer setting that needs to be set from the printers utility (GUI or whatever) for specific paper information. I haven't used a Dot Matrix printer in over 20 years so I'm not certain. And back then dip switches were used to set printers settings for how much to feed for specific paper when using a printer with a stupid old timy computer type device. From the previous link I provided to the .PDF about the printer in question the .PDF says their is a Print Driver / Utility called "Epson Printer Setting" which may be what is needed to set the printer to only feed between perforations for the paper perforation to perforation measurement.


La vida loca