NPrinterManager - PrintOnSinglePage


Author
Message
Mohamed Koker
Mohamed Koker
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1
Hi All,

I upgraded to version 12.12.17.12 recently and found the following code no longer compiles:

NPrintManager printManager = new NPrintManager(document);
printManager.PrintOnSinglePage = true;

I would be grateful for any help in getting this code to compile.

Thanks in advance

-Mohamed
Reply
Trond Borg
Trond Borg
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)
Group: Forum Members
Posts: 7, Visits: 1
Unfortunately this is not working... when calling the UpdateCmdBarManager, it throws an exception on the first line:
"NDiagramCommand oldCommand = cmdBarManager.Commander.Commands.GetCommandFromId((int)DiagramCommand.PrintPreview);"

The errormessage is:

"Item has already been added. Key in dictionary: '5' Key being added: '5'"

Seems very strange as I would think the GetCommandFromId does nothing, but fetch the command...
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search