Click here to Skip to main content
13,145,794 members (71,005 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi, I am using "LIPI LWT 150 PLUS",It support epson driver,but now i am Kiosk Project(Receipt-Ticket-Print),company gave PrintTemplate also,i unable to communicate with USB Printer.
Can any one help me in that one,
below is the sample code:

private static void printdata(string str_Moviename, string str_Date, string str_Time, string str_RowID, string str_SeatID)
            PrintDialog dialog = new PrintDialog();
            string r = File.ReadAllText(@"D:\SomeTextFile.txt");
            r = r.Replace("<<moviename>>", str_Moviename);
            r = r.Replace("<<movieid>>", str_RowID);
            r = r.Replace("<<bookingid>>", str_RowID);
            r = r.Replace("<<Showdate>>", str_Date);
            r = r.Replace("<<ShowTime>>", str_Time);
            r = r.Replace("<<Seatinfo>>", str_SeatID);
            string text = r;
            Paragraph myparagraph = new Paragraph();
            myparagraph.Margin = new Thickness(0);
            FlowDocument flowdocument = new FlowDocument();
            myparagraph.Inlines.Add(new Run(text));
            DocumentPaginator paginator = ((IDocumentPaginatorSource)flowdocument).DocumentPaginator;
            dialog.PrintDocument(paginator, "my ticket");
Posted 14-Nov-12 19:32pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100