Photoshop-Cafe.de :: Dein Photoshop-Forum

Visual Basic Express Upd -

' Optional: Print directly PrintDocument1.DocumentName = "MyPaper" PrintDocument1.Print() End Sub

If you meant , let me know and I’ll show you how to use Microsoft.Office.Interop.Word or a PDF library with VB Express.

Let me know your specific goal so I can tailor the answer.

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ' Simulate producing a paper Dim title As String = "My Sample Paper" Dim author As String = "Student Name" Dim body As String = "This is the content of the paper. " & "It discusses important topics and concludes with findings." ' Combine into a document Dim paper As String = "Title: " & title & vbCrLf & "Author: " & author & vbCrLf & "Date: " & Date.Now.ToString() & vbCrLf & vbCrLf & body & vbCrLf & vbCrLf & "--- End of Paper ---"

' Save to a file My.Computer.FileSystem.WriteAllText("C:\temp\MyPaper.txt", paper, False)

' Optional: Print directly PrintDocument1.DocumentName = "MyPaper" PrintDocument1.Print() End Sub

If you meant , let me know and I’ll show you how to use Microsoft.Office.Interop.Word or a PDF library with VB Express.

Let me know your specific goal so I can tailor the answer.

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ' Simulate producing a paper Dim title As String = "My Sample Paper" Dim author As String = "Student Name" Dim body As String = "This is the content of the paper. " & "It discusses important topics and concludes with findings." ' Combine into a document Dim paper As String = "Title: " & title & vbCrLf & "Author: " & author & vbCrLf & "Date: " & Date.Now.ToString() & vbCrLf & vbCrLf & body & vbCrLf & vbCrLf & "--- End of Paper ---"

' Save to a file My.Computer.FileSystem.WriteAllText("C:\temp\MyPaper.txt", paper, False)

Antwort

Stichworte
brdige cs5

Lesezeichen


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

visual basic express Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.

Gehe zu

visual basic express Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Problem mit den Einstellungen TonyX Hilfestellung, Tipps und Tricks 3 23.09.12 23:29
CS6 Einstellungen WDASCH Hilfestellung, Tipps und Tricks 3 19.06.12 17:16
Facebook Einstellungen Sinux Lounge 13 15.12.11 18:31
adobe bridge foto einstellungen simonl Hilfestellung, Tipps und Tricks 7 26.06.11 13:01
Bridge Camera Raw: Einstellungen werden nicht gespeichert jkaros Hilfestellung, Tipps und Tricks 0 22.12.09 01:38


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:15 Uhr.

visual basic express

Impressum

Kontakt      Photoshop-Cafe      Archiv     Impressum     Nach oben

Powered by vBulletin® Version 3.8.7 (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
visual basic express ©2005-2024 photoshop-cafe.de

Seite wurde generiert in 0,04844 Sekunden mit 10 Queries