Search found 7 matches

by sigbert
Tue Sep 26, 2023 2:52 pm
Forum: Support
Topic: Onenote print
Replies: 10
Views: 35798

Re: Onenote print

probably after the next windows update:

Code: Select all

array[0..infinite]
by sigbert
Tue Sep 26, 2023 1:50 pm
Forum: Support
Topic: Onenote print
Replies: 10
Views: 35798

Re: Onenote print

Found!
My Richview to old ? Sorry.

Microsoft.Office.OneNote_16001.12026.20112.0_x64__8wekyb3d8bbwe_microsoft.onenoteim_S-1-5-21-3759952986-2211634303-2982840940-1001

Code: Select all

function RV_GetPrinterDC: HDC;
var ADevice, ADriver, APort:array[0..1023] of Char;//old array[0..79] of Char;
by sigbert
Tue Sep 26, 2023 11:05 am
Forum: Support
Topic: Onenote print
Replies: 10
Views: 35798

Re: Onenote print

Yes, you are right, but it pops immediately after exiting RV_GetPrinterDC.

Code: Select all

function TPrintableRVData.InitPrinterCanvas: TCanvas;
var HDC: THandle;
begin
   HDC := RV_GetPrinterDC;
//error here
   if HDC=0 then
......

Code: Select all

RV_GetPrinterDC
......
end. //no error yet
by sigbert
Tue Sep 26, 2023 9:46 am
Forum: Support
Topic: Onenote print
Replies: 10
Views: 35798

Re: Onenote print

Apparently a bit of CPU work helps for me

Code: Select all

 Dummy :=''; while Length(Dummy)<10 do  Dummy:=Dummy+' ';
by sigbert
Tue Sep 26, 2023 9:03 am
Forum: Support
Topic: Onenote print
Replies: 10
Views: 35798

Re: Onenote print

I only have “Onnote” as the driver. It appears that adding any line of code to RV_GetPrinterDC resolves the error. Printer.Printers[Printer.PrinterIndex]; or everything encapsulate in Try except A Sleep(X) does nothing. The error will probably lie somewhere else. I don't think we'll waste any more ti ...
by sigbert
Tue Sep 26, 2023 7:10 am
Forum: Support
Topic: Onenote print
Replies: 10
Views: 35798

Onenote print

I accidentally specified Onenote as the printer here. The result is an Access Violation, somewhere in the RV sources. Of course, nobody uses that. But the AV is unattractive. Any ideas? https://www.se-cs.de/tmpdownload/rv/onenote.png Prevent printing to Onenote: RV_GetPrinterDC..... if LowerCase ...
by sigbert
Thu Jun 21, 2007 1:24 pm
Forum: Support
Topic: Errors when saving and loading RVF from stream
Replies: 5
Views: 19902

procedure TMarkRichView.RestoreFromBackupStream;
begin
if FBackupMemStream.Size < 1 then
Exit;
RVE.Clear;
RVE.DeleteUnusedStyles(True, True, True);
RVE.Format;
FBackupMemStream.Position := 0;
RVE.LoadRVFFromStream(FBackupMemStream);
RVE.Format;
end;