Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Holla.

hab n problem mit dem drucken.

also ich verwende VC6 ++

erstmal mein aktueller quelltext

void CRechts::OnPrint(CDC* pDC, CPrintInfo* pInfo)

{

CRichEditView::OnPrint(pDC, pInfo);

}

BOOL CRechts::OnPreparePrinting(CPrintInfo* pInfo)

{

// TODO: DoPreparePrinting aufrufen, um das Dialogfeld Drucken zu öffnen

DoPreparePrinting(pInfo);

return CRichEditView::OnPreparePrinting(pInfo);

}

So nun ist mein problem das ich wenn ich drucke in m_rectDraw immer linksoben, und links ne 0 als wert drinnen stehen habe. Da aber unser drucker nicht von linksx 0 und linksy 0 nicht drucken kann verschwinden mir ca. 5 pixel von meinem text.

mein erster versuch war es m_rectDraw die werte reinzuschreiben die ich für richtig halte.

---> ergebnis: tief in der blöden MFC überschreibt er mir die werte wieder. egal wo ich sie ändere.

OK. dann hab ich mir einfach mal ein projekt erstellt das von der Basisklasse CRichEditView abgeleitet is erstellt und habe dort mal debuggt. mir wird aber allerding überhaupt nicht klar woran es liegen kann das es nicht funktioniert.

Jetzt werden bestimmt einige sagen das das drucken automatisch funktioniert. Richtig, leider nicht bei mir ich habe vorher ein CRichEditCtrl gehabt und habe das ganze dann umgebaut zu einem CRichEditView. Somit fehlen dem ding ein paar kleinigkeiten die normalerweise mit erstellt werden.

Hoffe mir kann jemand helfen

mfg

[camper]cleo

Jup hast recht hab ich wohl übersehen.

thx

ähmmm funktioniert alles bis auf das abbrechen im Dialog da krieg ich n Unknown software exception und das programm schmiert ab.

ups habs schon muss nur die DoPreparePrinting abfragen.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.