Autor Beitrag
delphistart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: Sa 23.12.06 23:13 
Ich erzeuge mit meinem Programm eine html-Datei. Diese Datei würde ich dann gerne mit hilfe von einem befehl (der mir leider fehlt) mit dem Standartbrowser öffnen, dann Drucken und dann den Browser wieder schließen. Noch lieber wäre es mir, wenn ich die Datei ohne den Browser drucken könnte, aber ich nehme an, dass wird wohl kaum gehen...

Danke schonmal für die Hilfe!


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Sa 23.12.2006 um 23:20
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 23.12.06 23:21 
Willlst du den HTML-Code drucken?

oder

Die Seite, wie sie im Browser dargestellt wird, drucken?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 23.12.06 23:26 
Zitat:
Ich erzeuge mit meinem Programm eine html-Datei. Diese Datei würde ich dann gerne mit hilfe von einem befehl (der mir leider fehlt) mit dem Standartbrowser öffnen,
ShellExecute. Mt dem anschließendem Drucken wird es schwerer, da es ja verschiedene Browser gibt.
Zitat:
Noch lieber wäre es mir, wenn ich die Datei ohne den Browser drucken könnte, aber ich nehme an, dass wird wohl kaum gehen...
TWebBrowser/TMozillaBrowser bzw HTML-Komponente

_________________
Markus Kinzler.
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: So 24.12.06 00:03 
user profile iconAndreas L. hat folgendes geschrieben:
Willlst du den HTML-Code drucken?

oder

Die Seite, wie sie im Browser dargestellt wird, drucken?


Ich möchte die Seite so drucken, wie sie im Browser angezeigt wird, um alle Formatierungen un den Druck übernehmen zu können.
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: So 24.12.06 17:29 
BIn mitlerweile wirklich am verzweifeln... Das schreiben der html-DAtei klappt perfekt, aber ich würde gerne auch das Drucken automatisieren.

Wäre nett wenn eine noch Mal einenLink oder eine Idde posten könnte!
:( :?: :(

Danke schonmal im voraus

Gruß
Jonas
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 24.12.06 18:29 
Da ich gerade in super Stimmung bin:

- Komponente -> ActiveX importieren... -> Microsoft Internet Tools -> Installieren
- TWebBrowser auf Form ziehen
- Dann den Source hier benutzen und den TWebBrowser übergeben: www.dsdt.info/tipps/?id=171

Frohe Weihnachten :-).

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: So 24.12.06 20:08 
user profile iconGTA-Place hat folgendes geschrieben:
Frohe Weihnachten :-).


Danke! Dir Auch! :party:

Ich werde deinen Vorschlag Morgen ausprobieren. Ich schreib dann auch obs geklappt hat. Jetzt muss ich noch ein bischen Feiern gehn sonst ist die Family sauer und ich verpasse Weihnachten :wink:
delphistart Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 119



BeitragVerfasst: So 24.12.06 21:00 
Habe das ganze doch jetzt schonmal ausprobiert und bin leider nicht weit gekommen.

Bei mir gibt es unter Komponente nur 3 Punkte:
1: Installierte .NET-Komponenten...
2: Neue VCL-Komponente...
3: Komponenten Template Installieren
4: Packages Installieren

Leider kein ActiveX-Steuerelement importieren... :-(

Gibt es das bei Delphi.Net 2005 Personal vielleicht (noch) nich???
Sonst weis ich echt nicht was ich falsch mache. In der Delphihilfe steht ja auch, dass es den Punkt unter Komponenten gibt...

Gruß Jonas
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mi 27.12.06 14:46 
Der Punkt ist bei D2005PE einfach nur rausgelöscht, damit man nen Grund mehr hat, sich ne kostenpflichtige Version zu holen.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 27.12.06 16:01 
Hallo,

da gehts weiter:

mshtml.dcu und d2005PE

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )