Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This is my big problem
Message
From
31/10/2000 14:06:55
 
 
To
31/10/2000 03:05:29
Basharat Ali
Gateway Computers
Sukkur, Pakistan
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00421290
Message ID:
00436461
Views:
21
If its an alignment issue try my PADC, PADL, PADR for foxheads in the files area. Include that module in your project.

You could use the following syntax:
strLine1 = PADC("INVOICE",60)
strLine2a = PADR("Invoice. " & cInvoiceNo, 46)
strLine2b = PADR("Date, " & format(date, "MM/DD/YY", 14)
strLine2 = strLine2a + strLine2b  
strLine3a = PADR("Sold. " & strCusFName & " " & strCusLName, 46) 
strLine3a = PADR("Phone. " & strCusPhone, 14) 
strLine3 = strLine3a + strLine3b  
strLine4 = PADL("-",60,"-" ) ' I realize there are better ways for this line
Then you can print using your prefered method by iterating through the 4 lines.

>hello Sir,
>how ru? i hope u will fine.
>im creating a printer report on visual basic.
>when i print my report it was not correct.
>main problem is space.
>forexample.
> INVOICE
> Invoice. 9283 Date. 10/20/00
> Sold: John Phone. 28373
> -----------------------------------------------------------
> INVOICE
> Invoice. 2837 Date, 10/20/00
> Sold. Joe Johnston Phone. 23834
>
>
>and the problem is space between customer name and phone.
>i use LTRIM, RTRIM,
>but it will not correct.
>plzz solve my problem
>and give me good advice. thanks
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform