Print Simple Text In Courier New?
Mar 27, 2009Is there a way to print simple text in Courier New? No pictures, no fancy fonts, it's all the same size, and no margins, etc. Is there a VB.NET function for this?
View 3 RepliesIs there a way to print simple text in Courier New? No pictures, no fancy fonts, it's all the same size, and no margins, etc. Is there a VB.NET function for this?
View 3 Repliesi'm writing a simple program that outputs a report to a text file with code similar to below PrintLine(1, "Hello", "World") my question is how to format the text so it can be saved as courier new or bold? frustrated visual basic user
View 2 RepliesJust looking to get a print preview on a simple text document.
View 9 RepliesHow do i add a simple print button in vb 2008 to allow me to print the form?
View 1 RepliesIn VBA one could use the .printout command and was also similar in vb6. but I cant really find a simple way to print a variable in vb.net.
View 1 RepliesI am making a calculator Program to start off on visual basic. I got it to work with MsgBox, but now I'm trying to get it to work with the Print.
MsgBox Example
Public Class Form1
Private Sub Button1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseClick
Dim Pizza As Integer
[Code] .....
Say I type in 6 and 6 I'm getting errors saying Example: Conversion from string "youranswer is 12" to type 'Integer' is not valid. I've tried many things, but it's not working. I want to know what I need to do to get it to print out how I want it. Do I need to do some conversions properly somehow?
Can anyone point me to the right thread where theres a guide how to make a simple print report from .net 2008..Basically what i need is a simple report database is ms access and the database is dynamically stored on a string,on vb6 its something like rpt. but on 2008 i don't know really how to implement this one.can anyone help me work like a dynamic or on a hardcode program,not on a static settings.
View 5 RepliesHow can i print out an textbox with a simple click button? i prefer it with a dialog where people can select there printer. This is what i found but it doesnt work
Private Sub Button84_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button84.Click
Printer.Print(TextBox11.Text)
Printer.EndDoc()
End Sub
i'm having a hard time on making a simple print preview of my report..
View 7 RepliesI need to design a simple label designer that could print labels for shelf items, just like in a grocery store. The requirements are that the label shall contain a name, a barcode (e.g. Code39 symbology), price and room for some extra text.
[Code]...
How to print nice Drawings and things... All i want to do is send the data from a simple textbox to a piece of paper. I understand how to do page setup and such.. The only thing i don't know is how to actually set up the page.
View 1 Repliesive managed after about a week and a half to build an mdi text editor, as ive found out its harder to build than a regular text editor lol.
View 5 RepliesI am trying to make a notepad type thing that uses tabs. Each tab has a rich text box on (After being added via buttons) but am really unable to find a way to get the print preview to preview a certain, single text box on tabs. And obviously i can't add them manually (that i know) as loads of new tabs can be added at any time by the user.
View 1 Repliesi want to print
1. Only text
2. No controls should be appear in the print like textboxes etc.
how to print to text file of query print job using vb.net?
View 2 RepliesI have this Quiz software that lets you create online multiple choice quizzes which are great for studying (I am in grad school and I'm trying to use everything I can to learn). So the Quiz software is great but it only lets you input questions by hand, one by one. I took a look at the .xml file that the quiz program spits out and came up with the idea to try and make a converter so that I can import many questions at once. I was hoping to try and solve this limitation by doing the following:
Take a .doc that say a tutor gives us with a bunch of practice questions, and then take that into Crimson Editor, and then format it so the question is on line 1, the multiple choice answers are on lines 3,4,5, and 6, (for the next question, the question would be on line 11, and the answers on lines 13, 14, 15, and 16, and so on) and then take that saved .txt file into my program, hit the generate button, and it will spit out the .xml file, and then import that into the quiz software to generate the online quiz.
Here is an attached screenshot of my program layout so far:
I figured out how to open a text file by watching simple youtube tutorials, but I don't know how to have it generate the stuff and have it show up in the bottom text box. I know how to do the coding to convert the txt to proper xml code but I don't know how to be able to save the contents of the bottom text window to an xml file.
I want to make a program that sends text in the text box to a form on a website and print the page as .xps
View 2 RepliesWhat I want, is Some text fields to input text, and one image path, then I want to print that, in a format like..
Centered Text
Centered Text
-------------------------------------
[=====IMG=====] Text text text text
[code]....
But from everything I've read though, I'm completely lost.
I've been trying to print out a text string to a printer that I have connected. I cannot print using the PrintDocument.Print() as this sends the string as a graphic to the printer.I don't know C# and I am very new to full fledged VB having spent most of my time using VBA in Excel
View 3 Repliesbasically the user enters phrases into the textboxes, and i use <TAG> in the text so that every time button is clicked the selected text is rewritten including a phrase from the textbox.
View 19 RepliesSo basically, I now how to do the whole text to speech thing with the following Button
VB
Dim SAPI
SAPI = CreateObject("SAPI.spvoice")
SAPI.Speak(TextBox1.Text)
But is there any way to get it to read other writing systems, such as Korean Is there some sort of software or some addon or something I can install? Perhaps a Korean version of Microsoft Visual Studio 2010, or something?I'm really at a loss here, and it would help me out a lot if there's a solution out there that someone can think of.
I have a dbase.txt file with some data in it. i.e -
Institution Course StudentID
XZY ABC 2010-1111111 "the spaces between columns is one tab space"
XYZ ABC 2010-1222222
XYZ ABC 2010-1333333
I want to perform simple SQL like operation - i.e -
SELECT * FROM dbase.txt or
SELECT Institution FROM dbase.txt WHERE StudentID=2010-1111111 and an insert operation like -
INSERT dbase.txt VALUES (XYZ ABC 2010-1444444)
I have written some code which is not even closer to what I mentioned above. My program can read only the whole text file. There is a menu, but not functioning well, as well as my write function which is not working at all.
Below is my code -
Imports System.IO
Module Module1
Sub Main()
Dim intInput As Integer
Console.WriteLine("Main Menu")
[Code] .....
In VB6, when I wanted to print text, I would do something like this...
Dim TextToPrint as string
TextToPrint = LastName(1) & ", " & FirstName(1) & " " & G(1,1) & " " & G(1,2) & " " & G(1,3) & vbCrLf
TextToPrint = LastName(2) & ", " & FirstName(2) & " " & G(2,1) & " " & G(2,2) & " " & G(2,3)
TextToPrint = LastName(3) & ", " & FirstName(3) & " " & G(3,1) & " " & G(3,2) & " " & G(3,3) & vbCrLf
Printer.Print TextToPrint
What's the equivalent in VB 2010?
Getting a vibe that my VB is cursed. All I want to do is load a textfile and have the text appear in TextBox1 But no. I have looked at 3 different tutorials and I have tried copying their code word to word but still!
Public Class Form1
Private Sub ImportToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ImportToolStripMenuItem.Click
[CODE]...
And it gives me the following errors:
Error1Character is not valid.C:\Users\Saurabh Sharma\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb1067WindowsApplication1
Error2'daText' is not declared. It may be inaccessible due to its protection
CODE]...
I can't understand why this isn't working [code]I've created that text box. And I'm trying to use this event handler, to change the value of the public variable oName. But I'm getting an error saying that Text is not a member of HeroName.[code]
View 6 RepliesI am making a word processor, in VB 2008 and one problem I'm having is creating a save, print and open features. I have done the dialog bit, so when I click my save, print or open buttons the open, print or save window opens, but it's just the next bit that's mind boggling; writing a code so the file will actually open, save or print!
View 1 RepliesSo ive looked everywhere but every example i find doesnt work on visual studio 05 and doesnt convert properly. I simply want to send info from one computer to another through direct connection. if anyone could point me in the right direction it would really be helpful. most stuff i find seems to be more complicated than what im looking for.
then just one other question. both computers will be going through a router. as long as i have the port im using forwarded on the hosts side, that shouldnt be a problem, right?
What is the easiest way to implement a simple text editor w/in a RichTextBox? For example, one similar to what I'm using here to enter this text (i.e., having a bold, italic, underline, redo/undo, bullet, number, and hyperlink buttons).
View 11 RepliesIf
strOperand = "/" Then
intLast = intFirst / Val(
Me.TextBox1.Text)
I'm not getting a remainder like I would have hoped. I'm new and I'm sorry for the lack of intelligence on the subject. To my understanding the Val( function will convert the string to a number, but when I divide it gives me a single number instead of an integer.
I have absolutely zero coding experience and my background is non-IT. I'm however trying toy friend who also shares the same non-coding skillset as mine her automate some of her work but building a simple form that takes a bunch of input (drop down, check boxes, radio buttons, rich text boxes etc) and outputs it to the a word or rtf file. Is this possible?
View 14 Replies