Design the form of a similar bank certificates of deposit, now the printer configuration only A4 paper, so in order to save paper, how to print forms on a piece of paper to repeat 3 times, which means centered horizontal print, longitudinal, in under three locations,
What's the good advice,
CodePudding user response:
Accumulated enough three form real print again,
CodePudding user response:
If the table print time interval is short, the cumulative three print together; If the interval time is long, set the timeout mechanism, can a, two form print together
CodePudding user response:
refer to the second floor MQDSG response: print time interval is short, if the form is the cumulative three print together; If the interval time is long, set the timeout mechanism, can a, two form together to print You can also set up a "print now" button, CodePudding user response:
reference zhao4zhong1 reply: 3/f Quote: refer to the second floor MQDSG response: If the table print time interval is short, the cumulative three print together; If the interval time is long, set the timeout mechanism, can a, two form together to print You can also set up a "print now" button, Zhao4 as teacher!!!!!!!!!! CodePudding user response:
I apprehend the meaning of the original poster is on a piece of A4 paper print on three same form at the same time, if so, can play the form at the same time made in A4 paper, print a complete, CodePudding user response:
reference 4 floor MQDSG response: Quote: reference zhao4zhong1 reply: 3/f Quote: refer to the second floor MQDSG response: If the table print time interval is short, the cumulative three print together; If the interval time is long, set the timeout mechanism, can a, two form together to print You can also set up a "print now" button, Zhao4 as teacher!!!!!!!!!! I'll blush with shame, who had been praised a CodePudding user response:
actually fifth floor should also be praised, CodePudding user response:
refer to 7th floor zhao4zhong1 response: actually fifth floor should also be praised, The estimated error my expressionI mean how to according to my string length, the A4 paper to print the corresponding number of forms, and in the form of a string of numerical fill (string), For example, Such as: the existing string CSting STR1=cs19_sy87_PO23_TY19_sR87_PO53... So the first page to play three form to fill in the cs19 respectively, sy87, PO23, behind the second page and so on, A page of A4 can only play 3 form, how to arrange print it out, how to use vc + + drawing form, is there a good example, thank you I also see the relevant examples, but still not, don't know how CodePudding user response:
String: The Split function Description Returns a one-dimensional array subscript from scratch, it contains the specified number of substrings, Syntax Split (expression [, delimiter, count, compare [] []]) Split function grammar has the following several parts: Part of the description Expression required, contains the substring and separator string expression, if the expression is a zero-length string (" "), Split it returns an empty array, namely no elements and data array, Delimiter optional, a string used to identify the substring boundary character, if ignored, use the space character (" ") as a delimiter, if delimiter is a zero-length string, and returns an array of contains only one element, namely complete expression string, Count optional, number of substrings to return - 1 said returns all the substring, Compare optional, numeric values, says when judging the substring using comparative way, on its value, please refer to the "Settings" section, Set the value Compare parameter Settings are as follows: Constant value description VbUseCompareOption - 1 with Option Compare statement is within the set values, VbBinaryCompare 0 perform a binary comparison, VbTextCompare 1 perform text comparison, VbDatabaseCompare 2 is only used to Microsoft Access, based on your database information to perform the comparison, From the application to print Visual Basic provides three for printed text and graphics technology, Can build the required output in the form, and then use PrintForm method to print the form, By setting the Printers in the collection of the default printer, can transmit text and graphics to the printer, Can transmit text and graphics to the Printer object first, reoccupy brought and EndDoc method to print, This part will discuss the advantages and disadvantages of the above three methods, Method of use PrintForm PrintForm method specifies the form of image transfer to the printer, use PrintForm method to print the information in the application, to the information displayed in the form first, next reoccupy PrintForm print form, grammar is as follows: [form] PrintForm If omitted form name, the Visual Basic to print the current form, all PrintForm print form content, even form a part of the screen to see, if the form contained in the graphic, only when AutoRedraw attribute set to True to print graphics, after printing, PrintForm call EndDoc method to empty printer, For example, can through the method of the text display on the screen, the text sent to the printer, then call PrintForm method with the following statement: Print "Here is some text." PrintForm PrintForm method is the easiest way to the application to print, because it can transmit information to the printer according to the user's screen resolution (print 96 points per inch), even if the printer has a higher resolution (for laser printers, print 300 points per inch), the results wouldn't be better, the results according to the object can be in the form of change, Details please refer to the "language reference" PrintForm method ", " Use the printer set Printer is a collection includes all the available printers in the operating system object, the list of printers with the print setup dialog box or Windows the effective content in the "control panel", same printer in the collection of each printer has a unique index definition, indexing starting from 0, each printer according to index number to refer to, No matter with what kind of printing method, all print, the content of the Visual Basic application object Printer directly pointing to, when it was originally on behalf of the Windows default Printer) specified in the "control panel", however, can also be used for any of the Printers set set to the default Printer, Use the following syntax, can choose the printer from the printer in the collection: The Set Printer=Printers (n) The following statements to print all the printers in the operating system device name to "immediately" window: Private Sub Command1_Click () Dim x As Printer For Each x In Printers The Debug. Print x.D eviceName Next End Sub Note can't create a new Printer object instance in your code, also cannot directly to add or delete a Printer in the collection of Printers, to add or delete a Printer in the system, you should use Windows "control panel", Use the Printer object nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull