Hello, my name is John McPherson. I work as a contractor for the DOL, and I am trying convert some code I maintain in an application to send output files to a printer. Right now, the code( a bash script) just slowly prints the output file on the screen, and the customer wants to have it sent to the printer instead. I work on a 64-bit Oracle( Sun) system with Solaris 11 as the Operating System. I have tried the command lpr -h -l $showfl in the bash script, but that just errors off without printing. I kept searching online …

Member Avatar
Member Avatar
+0 forum 7

Hello Daniweb, and thank you for taking the time to read this post. I have a question of efficiency. I am wondering, what is the most efficient way to print from a listview. The listview's values are loaded from a database, and I would like to print from that listview. So far I have tried moving them to a text file and printing the text file, but Windows said that "The file is to large for notpad" even though I was not using notepad. Is it advised to create an array of structures and then load everything into the array? …

Member Avatar
Member Avatar
+0 forum 11

To refresh my mind I did some exercises about complex numbers. I was constantly drawing axes and arrows. So I decided to print out some worksheets with a program to make my life a bit easier, and because it is always fun to design a little program to do that for me. Like to share this. Enjoy. This how it can look on the screen. ![Polarsheet.png](/attachments/large/1/9d876fc2d39ccc5c0d6fcf366a09a2a2.png "align-center") The listing just shows the main two classes. In the possiblity that anyone would be interested in the whole project, I might send a zip file. But it should be obvious how to …

Member Avatar
+2 forum 0

I need a way to print(and later on compare - but for now just print) characters 2 by 2 as in: I have a string of 1F190307091810 and I have to print out: 1F 19 03 04 09 18 10. I need this for Baudot code(I have segments of code given to me and I have to compare letters and numbers - together, two by two) If you don't understand something please ask(I know I explain this in a weird way).

Member Avatar
Member Avatar
+0 forum 8

i have many fields in page like sno,regno,date,name,school name etc.like a registrationform. i have two button save and print. i want to print the current saved record when i press print button.my registration no is primarykey and auto increment.

Member Avatar
Member Avatar
+0 forum 2

Good day all! And thank you for a great Site :). I have developed an applcation that also now has to print barcode stickers, using VB6. Is there anyone here that has done that before please?

Member Avatar
+0 forum 0

Hi daniweb, I'm finding a way to create a 'plug and play' printing apps that can send the document softcopy to a bluetooth tethered device on the fly. I'm seeking advice on which programming language should i get into with to develop the apps. For advancement, I would like to make the device to connect via NFC instead of bluetooth. Thanks and regards.

Member Avatar
+0 forum 0

I want to print adress from a database containing lot of records. I have done it through report. But the problem is, All the address is printed in a single column. I want it to print in four or five columns in the paper so that I can save a lot of paper. Any body help me

Member Avatar
Member Avatar
+0 forum 8

![IMG_5690_(Small)](/attachments/small/3/IMG_5690_(Small).JPG "align-left") At a whopping 33 pounds, the Laserjet Pro 400 M425dn is certainly nothing compared to the massive printers you'd see in major offices or computer labs, but comes packed with everything you'd need for your small business or home office. While the printer strangely focuses black & white printing only, it comes backed with a wide variety of other features, including HP's brand new web printing, App system (preloaded with tons of gimmicky goodies,) and of course your usual scanner and fax machine. The M425dn seems to be a lot like a step-up, slightly bigger, 65 lbs cousin, …

Member Avatar
Member Avatar
+0 forum 2

'"No, thanks, Mom," I said, "I don't know how long it will take."'

Member Avatar
Member Avatar
+0 forum 1

I want to develop a simple application which runs on single computer (just runs in one mechine) and did not need network. Program has to store some data in database and show them for printing. I have no experience with real-word program so I confused here: If the program is so simple why should I use sql-server or crystal report; What is benefit of using them? What is benefit of not using them? I can use a Sqlite file or sdf file or sql-server for storing data and I can generate a html file or use crystal-report for printing the …

Member Avatar
Member Avatar
+0 forum 1

These are (I guess) the most basic printing instructions in C#, to let some printed paper coming out of a printer. Start a new Forms application, drop a ComboBox, a Label and a Button on the form. Implement a form Load and a Button Click event and fill in the rest of the above code. I hope the comments in it are sufficient to understand the code. Feel free to ask,if not. If you find any errors in it, or if you have any remarks, please inform me as well.

Member Avatar
+2 forum 0

Hello, is there any simple or basic example on how to code basic php forms and print them out from the webpage? thanks.

Member Avatar
Member Avatar
+0 forum 6

I have the following code which prints my datagrid nicely. The problem is that it only prints the first page and cuts off everything thereafter. I know I need to implement the e.HasMorePages = True in some manner but I am unable to get that working. Here is my code: Dim x As Integer = 100 Dim y As Integer = 50 'draw headers Dim j As Integer = 1 Do While (j < Me.FrameToOrderDataGridView.Columns.Count) Dim rect As Rectangle = New Rectangle(x, y, Me.FrameToOrderDataGridView.Columns(j).Width, Me.FrameToOrderDataGridView.ColumnHeadersHeight) Dim sf As StringFormat = New StringFormat sf.LineAlignment = StringAlignment.Center sf.Alignment = StringAlignment.Center e.Graphics.FillRectangle(Brushes.LightGray, rect) …

Member Avatar
Member Avatar
+0 forum 1

Hello friends, This is my first port so please bear with me. I am developing a simple software in Vb.net 2010. In this software you can add, edit, delete, print records. I have done everything except print option as I dont have any idea on how to do this. I dont know VB.Net I long back was doing programming in Vb 6 after it was closed I never used vb.net and now here I am directly working on vb.net 2010. Till now reading from this website and google I have completed 90% of the software now just the printing part …

Member Avatar
Member Avatar
+0 forum 3

I'm having a hell of a time trying to print from an RTF box. I can do it, but for my test file (Lewis Carroll's "Fury said to a mouse..." with each word on a different line), I keep getting the first two pages printed on the same page, completely unintelligible, then the third page comes out okay. Here's all the relevant code--please forgive me for posting so much at once. Const fiName As String = "C:\Fury.rtf" Const v As String = ControlChars.CrLf Dim DocHasHeader As Boolean = False Dim HeaderHasPageNums As Boolean = False Dim idx As Integer = …

Member Avatar
+0 forum 0

Hello All, I'm trying to write a function that outputs the reverse of the input. I know that you can use the built-in list.reverse() or S[::-1] methods, but I want to make it using the 'for' loop. My code initially is: def reverse(S) for x in S: print(x, end = " ") the inputs would be >>> reverse(['a','b','c'] ['a','b','c'] #this is output on shell Any ideas on how to reverse it and have the output be like below: >>> reverse(['a','b','c'] ['c','b','a'] Any help would be greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 4

Hi, I have created a label template in Word and written a macro to print all records (see code below printAllRecords() and attachments) from an Excel datasource. The problem is when I press F2 (defined function key to print all records in my macro), it prints the 1st page once and then print all records (i.e. 1st page is printed twice). Anyone knows why and how to fix it?? Thanks! Sub autoOpen() Dim actPath As String Dim strFileExcel As String actPath = ActiveDocument.Path strFileExcel = actPath + "\CCS Automation Template.xls" ' Get the source and update labels ActiveDocument.MailMerge.OpenDataSource Name:= _ …

Member Avatar
Member Avatar
+0 forum 1

hello, can someone help me, when I put the codes from my book and edited them to use filestream, I encounter an error #include <iostream> #include <fstream> #include <string> using namespace std; struct nodeType { string info; nodeType *link; }; int main() { nodeType *head = NULL; nodeType *newNode; nodeType *p; ifstream reeaad; reeaad.open("meow.tx"); newNode = new nodeType; while(!EOF) { getline(reeaad,newNode->info); newNode->link = NULL; }; p=head; p->link=newNode; nodeType *temp; int counter = 1; temp = head; while(temp!=NULL) { cout<<"node:"<<counter<<" "; cout<<"Info:"<<temp->info<<"\n"; cout<<"---------------\n"; temp = temp ->link; ++counter; }; system("pause"); return 0; };

Member Avatar
Member Avatar
+0 forum 5

I need help on a printing problem in MS Reporting Services. It has to do with page advancement. I have a code snippet below that I think should work. But, it doesn't. I think this should be a three page report with a person's name at the top of each page. But what I get in the print preview is one page with the second name overwriting the first and the third name overwriting the first and second. It's a one page report instead of a three page report. My understanding is that the statement e.hasMorePages = True is the …

Member Avatar
Member Avatar
+0 forum 1

Good afternoon everyone, Currently I am experiencing a problem with a flowdocument that I am trying to print. All the code is doing exactly what it is suppoed to do, but when I press the print button in my program, the page that comes out of the printer almost seems to be wordwrapped. All in all the printed page seems to go no further than ~50 characters. public void PrintIt() { PrintDialog PD = new PrintDialog(); FlowDocument FDForPrinting = FD; FDForPrinting.PagePadding = new Thickness(50.0); IDocumentPaginatorSource DocPager = FDForPrinting; DocPager.DocumentPaginator.PageSize = new Size(PD.PrintableAreaWidth, PD.PrintableAreaHeight); PD.PrintDocument(DocPager.DocumentPaginator, "AutoChecklist Report"); } The PagePadding seems …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to print the contents of a QTableView to the printer . i implement bottom script and it run successfully without any error. but all data are Unusual in printPreview. this is [pic](http://img4up.com/up2/75917679167425743216.png) from my problem -[FOUNTAIN](http://www.qtcentre.org/threads/3796-QTableView-printing?highlight=Qprinter) def printTable(self,printer,painter,area): model = self.model myTableView = self.view printer = painter rows = model.rowCount(); columns = model.columnCount(); totalWidth = 0.0; totalPageHeight = 0.0; totalHeight = 0.0; for c in range(columns): totalWidth += myTableView.columnWidth(c) for p in range(45): totalPageHeight += myTableView.rowHeight(p); for r in range(rows): totalHeight += myTableView.rowHeight(r); xscale = area.width() / totalWidth; yscale = area.height() / totalHeight; pscale = area.height() / totalPageHeight; …

Member Avatar
+0 forum 0

Hi, I'm trying to print a document in landscape, but i'm only being able to print it in portrait. I've searched for the problem but i haven't found a solution to the problem. Can you, please help? Here's the source code: public void btnImprimir_Click() { try { PrintDialog pDialog = new PrintDialog(); pDialog.PrintQueue = System.Printing.LocalPrintServer.GetDefaultPrintQueue(); pDialog.PrintTicket = pDialog.PrintQueue.DefaultPrintTicket; // set default paper size or remove this line to use the default size pDialog.PrintTicket.PageMediaSize = new System.Printing.PageMediaSize (System.Printing.PageMediaSizeName.ISOA4Rotated); Nullable<Boolean> print = pDialog.ShowDialog(); if (print == true) { W.MyFlowDocument.PageWidth = 2950; W.MyFlowDocument.PageHeight = 2100; DocumentPaginator myDocumentPaginator = ((IDocumentPaginatorSource)W.MyFlowDocument).DocumentPaginator; //myDocumentPaginator = new DocumentPaginatorWrapper(myDocumentPaginator, …

Member Avatar
+0 forum 0

Hi I am wrinting a program which takes customers details and their order details, each order line is added to a DGV and eventually saved to a MDB, a Crystal Report Viewer than queries the information back and displays it in the format I setup in the report i created, then this is printed via the Epson TM T88(from III to V). The thing is this is printing very slowly (line by line) compared to our EPOS software which prints as a thermal printer should. This is how i call the report parameters and print the report: Private Sub PrintITPOrderReceipt() …

Member Avatar
+0 forum 0

I recently made a c# printer management tool that uses a WCF service which contains [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394363%28v=vs.85%29.aspx"]WMI Win32_Printer[/URL] methods like [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384769%28v=vs.85%29.aspx"]AddPrinterConnection [/URL]and [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa393291%28v=vs.85%29.aspx"]SetDefaultPrinter[/URL]. Everything works fine if both the client and the WCF service run on the same machine. But if i try to move the WCF service on another machine, the methods stop working but nothing crashes. The AddPrinterConnection for example returns 0 which means success but no printer is really added on the local machine. The default printer even if is set to default returns false, etc. The printers list is somehow accesible. The WCF service behaves the same …

Member Avatar
Member Avatar
+0 forum 1

hello :) i'm using MFC SDI, & i'm less familiar to it. i need to know, 1: i have found a way of printing a string as [CODE]pDC->DrawText( " Task still pending!!! ", &rect , DT_PATH_ELLIPSIS );[/CODE] but i want to know, how can i print a 2D-Array in MFC SDI? 2: i've included a Dialog Box aswell. but how can i access the variables of my "xyzView.cpp" file in the Dialog Box button fuctions? Thanks :)

Member Avatar
Member Avatar
+0 forum 5

GoZ acts as a bridge between artists's creations made on Sculptris and the progs (such as Zdraw and 123D) that drive the 3D printer that makes them But despite dozens of websites boasting success, not one says how to ger GoZ Many thanks

Member Avatar
Member Avatar
+0 forum 1

hi guys, i have a database which has employee records for a hrms system. i would like to be able to print payslips of all employees without having to open every record and use the javascript window.print() function. Please help

Member Avatar
Member Avatar
+0 forum 1

How would I find the amount of characters in a string and then use that to print a certain amount of some character that you choose. For example: [CODE=Python] a = 'string' # this holds 6 characters print '*' * # amount of characters in string [/CODE]

Member Avatar
Member Avatar
+0 forum 2

Hello! I am currently looking for some help or ideas in a specific area of Python programming. The project I am having problems with pertains to python print drivers, and printing in a Linux OS. I had originally wanted to find a way (if possible) to write a python print driver for a Linux box I have; but the main issue I have is how to get the code to communicate with the kernel. Is it possible to write a piece of code that upon kernel start up, be able to translate a USB print driver written in python to …

Member Avatar
Member Avatar
+0 forum 3

The End.